-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension development: support to show functions in console.log #16450
Comments
As I'm looking deeper into this, I'm finding 2 things:
|
More details, looks like |
This is a result of us using JSON serialisation to convert objects being outputted to output in the debug console. One workaround would be to just do I think the way forward here is to get rid of JSON at all and support real objects from extension debug to the repl. @weinand @isidorn do we already have an item for this to support it for extension development? Similar to #15796 |
This needs a |
Thank you for the clarification guys. Not really a huge deal breaking priority bug (I don't think?) but I just wanted to make sure I got it submitted. |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
I have the following basic object:
Using Node.js normally I can easily require this object and utilize it:
As expected, yields:
However, when I am developing a VSCode extension, if I require this same exact file:
I get this:
The function that I specified in the exported object is completely ignored when it's required into the extension. I've never come across this with normal Node.js development. Can anyone shed some light on this? Is there something obvious I'm doing wrong that I'm just missing?
The text was updated successfully, but these errors were encountered: