-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
VS Code not reading jsconfig.json #13597
Comments
In case it helps, here is my stripped down example. It has a complex folder hierarchy because it's part of a larger project. I tried using open folders with prj-root as well as with prj-root\ui\apps\com.mydomain\mycomponent for testing purpose, that's why there are two jsconfig.json files. Problem 1: Problem 2: |
@malte-timmermann thank you for opening this issue. @bowdenk7 can I get your eyes on this one? OP seems to have set everything up correctly (see his zip file). If I try to trigger IntelliSense in node_modules/utils.js I get nothing. |
Hey @malte-timmermann, unfortunately we are unable to resolve AMD modules at the moment. To resolve this, you would need to update your codebase to use either ES6 modules or commonjs modules. The other issue with this specific code sample is that we can't resolve the expando pattern either. For example: var Utils = {};
Utils.foo = function(bar) {return bar};
Utils. //<------ we don't know function foo exists To resolve this one, you would just need to declare object properties at declaration time as opposed to tacking them on later. Like this: var Utils = {
foo: function(bar) {return bar};
} Like Wade said, we really appreciate you taking the time to open this issue. It helps us a lot. If you are interested in chatting more or trying to convert some of your code, I would be happy to help. |
Hi bowdenk7, thanks for looking into this. Too bad that VS Code wont support this, as this works fine in Netbeans, and changing code is not an option. Given that ES6 is currently not used by most people developing web apps - really no chance to support it? At least you wrote "at the moment" - so there is hope? Best regards |
Amd module support is being tracked here: microsoft/TypeScript#6942 I believe the properties issues is now being tracked here: microsoft/TypeScript#7632 Closing as upstream |
I also have the issue the jsconfig.json is not being read (see old/closed issue #703)
Tested with Visual Studio Code v1.5.3 and v1.7.0 insider, on Windows x64 (version 1607). No 3rd party antivirus, just Windows defender.
When using Sysinternals process monitor, I see that VS Code is getting some information about jsconfig.json (QueryAllInformationFile), but does NOT read the file (ReadFile).
Log when opening VS Code (with the current project) (reduced to jsconfig.json and my test file)
http://pastebin.com/GTKHPCZC
Log when actually opening jsconfig.json inside VS Code (so something like that should also happen when launching VS Code):
http://pastebin.com/je8Y3p4C
Not reading jsconfig.json unfortunately means that "go to definition" doesn't work for me with my own js files, what hinders me from switching from Netbeans to VS Code :(
I would really appreciate if this issue could be fixed. If you need further information, or my stripped down example, just let me know!
The text was updated successfully, but these errors were encountered: