-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Zero Intellisense for super-simple, valid, modular Node.js program #8281
Comments
From @mattflix on April 25, 2016 1:0 Here's a turn-key example of the scenario described above: Just expand to a local folder and open VS Code there. Open ./index.js in the editor and attempt to invoke get Intellisense for the call to hello(). The fact that no Intelliesense appears (other than the symbol "hello" has type "any") seems to contradict the claim that:
Source: https://code.visualstudio.com/Docs/languages/javascript |
From @sarbbottam on April 25, 2016 3:44 Similar issues: |
Moving to Salsa for investigation. |
duplicate of #6670 |
From @mattflix on April 24, 2016 10:6
Steps to Reproduce:
Example:
With VS Code opened to the folder designated by the dot (.) in the paths above, there is no meaningful Intellisense provided for symbol "hello" in ./index.js. Why not?
I did notice that, if an appropriate ./node_modules/foo/index.d.ts file is added, then Intellisense appears. But, I can't and/or don't want to use a Typescript definition for every module in my program.
In any case, TypeScript embellishment is beside the point... I thought VS Code was supposed to provide some minimum useful Intellisense even for plain Javascript, no? The advertised "rich editing support" features for Javascript described at https://code.visualstudio.com/Docs/languages/javascript certainly implied as much to me.
I mean, the static analysis engine should at least be able to infer that the default export of module "foo" is a function, with a parameter called "name", returning "any", right?
Or, do I not understand what the following feature descriptions (quoted from the aforementioned web page) are trying to say?
The "IntelliSense based on type inference" and "CommonJS-style module patterns" is what initially caught my eye when looking into using VS Code for my Javascript work.
But, when I tried the example code shown above, in an attempt to test out both of these features, I could not get them to work even in the simplest of toy projects.
Am I doing something wrong?
Copied from original issue: microsoft/vscode#5714
The text was updated successfully, but these errors were encountered: