Reputation: 1416
When i'm writing my dependencies in my package.json it should have intellisense for the package i'm trying to put inside dependencies
ex:
"bootstr" => should show a list of sugestion with "bootstrap" in it...
I get a list with one item => "bootstr"
so it doesn't make any sense...
I've tried in all my other project and i'm getting this problem. What is broken ?
Upvotes: 2
Views: 1863
Reputation: 3343
There are a lot of potential causes of this problem. Here are a couple of issues that I have run into before:
Go to settings.json
(there will be at least two of these for you, one for your workspace and one for your user)
Ctrl+,
(or File->Preferences->Settings)
I think there are a few settings that can cause this, so you might want to search for settings with json
, but the files.associations
is one that can break intellisense for package.json
:
"files.associations": {
"*.json": "javascript"
},
Delete the *.json
(or other json) entry
Make sure npm can parse your package.json
Make sure your package.json is properly formed (No missing comma, no extra brackets, no comments)
Upvotes: 2