You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSCode and intellisense are broken and unstable #32033
Either:
*Remove the node_modules folder
*Reinstall/delete/add a new npm package
*Use npm/yarn link
Intellisense breaks. When removing packages, you will get a bunch of errors, which is normal. But installing back everything doesn't update TS state.
Somehow VSCode bugs and gets stuck at a previous state. In the case of npm link sometimes it doesn't recognize the package being added.
When that happens, in most cases, TS server shuts down and any Intellisense feature is infinitely "Loading..." when required.
Though, sometimes things work out when I trigger autocomplete and everything is back to normal.
I have to restart VSCode or the TS Server all the time to refresh intellisense.
It just seems that VSCode cannot reliably react to any kind of file changes.
It's been like that since forever as far as I recall, however, the last few updates just made things worse I guess. I've never had a 100% reliable TS experience.
With the latest update, syntax highlighting stops working randomly too.
Does this issue occur when all extensions are disabled?: Yes it does.
Hi, I too seem to have this issue. Open a newly created Angular repo in VS code, don't know if this is related to any extennsion. Intellisense doesn't seem to work at all. All I get is "Loading...". Sometimes is works randomly, other times it doesn't all. This is a productivity killer and it is very annoying.
Sheetal Nandi (@sheetalkamat) If that can help, I found that refreshing the tsconfig.json (ie, deleting a character, undoing and saving the file) makes TS works again like usual.
But it's still annoying to do so every time you yarn add something and TS breaks.
Venky Venkataraman (@venky76v) When that happens, do you see the "Initializing TS/JS languages features" at the bottom-left in the status bar? If so then that's normal that Intellisense doesn't work right after opening an Angular repo because VSCode needs to initialize the TS features first.
we have this issue as well. changing some types lead to a „stuck“ typescript experience. changing between integrated and workspace version (basically restarting typescript) fixes the issue until it breaks again.
Sheetal Nandi (@sheetalkamat) If that can help, I found that refreshing the tsconfig.json (ie, deleting a character, undoing and saving the file) makes TS works again like usual.
But it's still annoying to do so every time you yarn add something and TS breaks.
Venky Venkataraman (@venky76v) When that happens, do you see the "Initializing TS/JS languages features" at the bottom-left in the status bar? If so then that's normal that Intellisense doesn't work right after opening an Angular repo because VSCode needs to initialize the TS features first.
Hi, As soon as I open a Angular repo, I see the initializing JS/TS features on the status bar. After this the message is gone. Now opening a ts file, say app.component.ts file and type this. + control + spacebar, all I see "Loading..." like so below:
If I leave the VS window and come back to it after a few minutes, like write this reply and then come back and hit control + space bar, I see the intellisense working. This is a productivity killer and it also kills your flow of throught, as well the behavior being totally inconsistent.
Hi, As soon as I open a Angular repo, I see the initializing JS/TS features on the status bar. After this the message is gone. Now opening a ts file, say app.component.ts file and type this. + control + spacebar, all I see "Loading..." like so below:
I see. This is not really the issue I am describing. I suggest you look into others issue. I recall seeing something similar elsewhere. Do you still have that problem with all extensions disabled?
The problem that Daniel Gut (@OneCyrus) and I are facing is that Typescript breaks when a file changes.
Just right now I cloned a git monorepo. Naturally, the packages were not installed, so Typescript was signaling 'modules not found' left and right. Even after I ran yarn and lerna to bootstrap and link all the packages in the repo Typescript was still stuck at its previous state. I once again had to reload the TS server.
Not 100% sure if related - but seems to fit -, but I have been finding that ts server and tsc sometimes will just stop listening for file changes, as in, if you make a change to a file, it doesn't get picked up to trigger a incremental compilation.
Activity
CyriacBr commentedon Jun 20, 2019
This seems to be related to this issue: microsoft/vscode#71751
mjbvz commentedon Jun 21, 2019
Sheetal Nandi (@sheetalkamat) I suspect this is related to the file watcher. Simple repo:
ng new appnode_modulesIn the larger VS Code repo, doing these steps can cause the server to get into a state where it never seems to finish loading
venky76v commentedon Jul 2, 2019
Hi, I too seem to have this issue. Open a newly created Angular repo in VS code, don't know if this is related to any extennsion. Intellisense doesn't seem to work at all. All I get is "Loading...". Sometimes is works randomly, other times it doesn't all. This is a productivity killer and it is very annoying.
CyriacBr commentedon Jul 3, 2019
Sheetal Nandi (@sheetalkamat) If that can help, I found that refreshing the tsconfig.json (ie, deleting a character, undoing and saving the file) makes TS works again like usual.
But it's still annoying to do so every time you
yarn addsomething and TS breaks.Venky Venkataraman (@venky76v) When that happens, do you see the "Initializing TS/JS languages features" at the bottom-left in the status bar? If so then that's normal that Intellisense doesn't work right after opening an Angular repo because VSCode needs to initialize the TS features first.
OneCyrus commentedon Jul 3, 2019
we have this issue as well. changing some types lead to a „stuck“ typescript experience. changing between integrated and workspace version (basically restarting typescript) fixes the issue until it breaks again.
venky76v commentedon Jul 4, 2019
Hi, As soon as I open a Angular repo, I see the initializing JS/TS features on the status bar. After this the message is gone. Now opening a ts file, say app.component.ts file and type this. + control + spacebar, all I see "Loading..." like so below:

If I leave the VS window and come back to it after a few minutes, like write this reply and then come back and hit control + space bar, I see the intellisense working. This is a productivity killer and it also kills your flow of throught, as well the behavior being totally inconsistent.
CyriacBr commentedon Jul 5, 2019
I see. This is not really the issue I am describing. I suggest you look into others issue. I recall seeing something similar elsewhere. Do you still have that problem with all extensions disabled?
The problem that Daniel Gut (@OneCyrus) and I are facing is that Typescript breaks when a file changes.
Just right now I cloned a git monorepo. Naturally, the packages were not installed, so Typescript was signaling 'modules not found' left and right. Even after I ran yarn and lerna to bootstrap and link all the packages in the repo Typescript was still stuck at its previous state. I once again had to reload the TS server.
Morphexe commentedon Jul 12, 2019
Not 100% sure if related - but seems to fit -, but I have been finding that ts server and tsc sometimes will just stop listening for file changes, as in, if you make a change to a file, it doesn't get picked up to trigger a incremental compilation.
sheetalkamat commentedon Jul 31, 2019
This seems to be Linux and potentially macOs specific issue and result of https://nodejs.org/dist/latest-v10.x/docs/api/fs.html#fs_inodes inode watching. Looking into fix for this issue. Thanks
svipas commentedon Sep 29, 2019
I can confirm I have this issue and I can agree it's related to file watching. I'm using macOS 10.14.6.
sheetalkamat commentedon Dec 10, 2019
#35615 (comment) is the fix for this. Feel free to try it out and provide feedback. Thanks