Intellisense broke in React .jsx/.js files in v1.14 for me (not Typescript). Downgrading back to v1.13.1 resolved it.
|Extension|Author|Version|
|---|---|---|
|vscode-jest|Orta|2.2.0|
|vscode-docker|PeterJausovec|0.0.16|
|jsrefactor|cmstead|1.3.0|
|gitignore|codezombiech|0.5.0|
|vscode-eslint|dbaeumer|1.2.11|
|githistory|donjayamanne|0.2.1|
|vscode-guid|heaths|1.1.0|
|vscode-auto-open-markdown-preview|hnw|0.0.4|
|ruby-linter|hoovercj|1.0.0|
|RelativePath|jakob101|0.12.0|
|vscode-todo-parser|minhthai|1.8.10|
|ruby-rubocop|misogi|0.4.0|
|Ruby|rebornix|0.12.1|
|sass-indented|robinbentley|1.4.1|
|gitflow|vector-of-bool|1.1.1|;
Steps to Reproduce:
Interesting. I'm having the issue for TypeScript.
Can you try:
"typescript.tsserver.trace": "verbose"TypeScript section of the output window.Look for error messages in this window when you trigger a completion. You can also paste up the output and I can take a look.
Anyone getting this similar error message on OUTPUT tab when TypeScript is selected.

VERSION :
1.15.0-insider (1.15.0-insider)
7bb3b89031cbce46536ba870868d889d639e12f1
2017-07-11T17:41:53.024Z
[Error - 2:32:58 AM] 'definition' request failed with error.
Error processing request. Project '/Users/<username>/<path>/<to>/<project>/jsconfig.json' does not contain document '/users/<username>/library/caches/typescript/2.4/node_modules/parse5/node_modules/@types/node/index.d.ts'
Error: Project '/Users/<username>/<path>/<to>/<project>/jsconfig.json' does not contain document '/users/<username>/library/caches/typescript/2.4/node_modules/parse5/node_modules/@types/node/index.d.ts'
at Object.ThrowProjectDoesNotContainDocument (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:75718:23)
at ConfiguredProject.Project.getScriptInfoForNormalizedPath (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:77238:42)
at ConfiguredProject.Project.getScriptInfo (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:77243:29)
at ModuleBuilder.AbstractBuilder.getOrCreateFileInfo (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76551:51)
at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76679:84
at Object.map (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:1483:29)
at ModuleBuilder.getReferencedFileInfos (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76679:31)
at ModuleBuilder.updateFileReferences (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76708:42)
at ModuleBuilder.ensureProjectDependencyGraphUpToDate (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76693:30)
at ModuleBuilder.onProjectUpdateGraph (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76684:22)
at ConfiguredProject.Project.updateGraph (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:77177:34)
Sorry @mjbvz I didn't read the issue carefully. I am however getting less syntax highlighting than I used to in TypeScript.
@drew-wallace Can you please file a seperate issue with screenshots and sorce code so that I can investigate. Thanks
For anyone running into issues with the VSCode 1.14: You probably don't need to downgrade VSCode, just the TypeScript version. Here are the instructions on that. We previously shipped with TS 2.3.4 so you'll want to try installing that version locally and using it in your workspace
@revathskumar Can you share your jsconfig.json?
@mjbvz My jsconfig.json
{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
}
}
Hi all,
My jsconfig.json:
{
"compilerOptions": {
"experimentalDecorators": true
}
}
And I also have the following in my user settings:
"files.associations": {
"*.jsx": "javascript"
}
I'm writing ES6 .js and .jsx files (not explicitly using TS). I had
absolutely no Intellisense in my JS files after upgrading, then downgrading
resolved it. I didn't check if the culprit was the VSCode version or TS
version. I apologize but I don't have time right now to go back to 1.14 to
provide the typescript tsserver trace, but if you really need it let me
know and I'll find the time.
-Nadeem
On Wed, Jul 12, 2017 at 3:11 AM Revath S Kumar notifications@github.com
wrote:
@mjbvz https://github.com/mjbvz My jsconfig.json
{
"compilerOptions": {
"target": "ES6",
"module": "commonjs"
}
}—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/30425#issuecomment-314676069,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABmlcBvhljAw48YFhpAHdid5qEWS87xUks5sNHGsgaJpZM4OUxxW
.
I'm experiencing this too :( downgrading fixed it for me.
I believe this may be caused by https://github.com/Microsoft/TypeScript/issues/17131
@nmitha or @dearsaturn Can you please try:
"typescript.tsserver.trace": "verbose" in your user settingsError processing request. messages in the TypeScript section of the output pane@mjbvz Strangely, updating again brought my intellisense back? Maybe I hadn't waited long enough for results to come in before. I'm sorry.
@mjbvz Thanks for the tip. I installed TS 2.3.4 and set "typescript.tsdk" setting to it. Then i got back my JS intellisense.
Looks like built in tsc on v1.14.0 is the culprit.
Same problem here. Intellisense in my typescript project stopped working since upgrading to 1.14. Downgrading to 1.13 solved the problem.
Possibly related, the following regular JavaScript does not syntax highlight correctly in v1.14:
var foo = {
'd': '('
};
var bar;
var bar; will be highlighted incorrectly
This came up for me when I had something other than d as the key which needed to be quoted. Changing the paren to something else fixes it.
(Edited. Sorry, didn't mean to submit so quickly.)
Deleting jsconfig.json also fixes this issue.
Having the same problem, my jsconfig.json looks like this.
{
"compilerOptions": {
"target": "es6",
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules"]
}
it works fine if you delete the jsconfig.json file. I'm acquiring type from @types/jest
error looks like this: jsconfig.json' does not contain document
[Info - 2:50:42 PM] Using tsserver from: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js
[Info - 2:50:42 PM] Forking TSServer
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[Error - 2:55:22 PM] 'completions' request failed with error.
Error processing request. Project '/Users/serkanyersen/playground/test-unittests/jsconfig.json' does not contain document '/users/serkanyersen/library/caches/typescript/2.4/node_modules/parse5/node_modules/@types/node/index.d.ts'
Error: Project '/Users/serkanyersen/playground/test-unittests/jsconfig.json' does not contain document '/users/serkanyersen/library/caches/typescript/2.4/node_modules/parse5/node_modules/@types/node/index.d.ts'
at Object.ThrowProjectDoesNotContainDocument (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:75718:23)
at ConfiguredProject.Project.getScriptInfoForNormalizedPath (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:77238:42)
at ConfiguredProject.Project.getScriptInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:77243:29)
at ModuleBuilder.AbstractBuilder.getOrCreateFileInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76551:51)
at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76679:84
at Object.map (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:1483:29)
at ModuleBuilder.getReferencedFileInfos (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76679:31)
at ModuleBuilder.updateFileReferences (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76708:42)
at ModuleBuilder.ensureProjectDependencyGraphUpToDate (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76693:30)
at ModuleBuilder.onProjectUpdateGraph (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:76684:22)
Same issue here, I think
This is my error log. Not using TS, just JSX with vscode 1.14. Didn't happen before. I also noticed that if I close and open the editor, it starts and it works for a few seconds and then it stops working and gives the error below.
[Error - 10:56:45 PM] 'completions' request failed with error.
Error processing request. Project '/<project>/jsconfig.json' does not contain document
'/.../library/caches/typescript/2.4/node_modules/parse5/node_modules/@types/node/index.d.ts'
and this is my jsconfig.js
{
"compilerOptions": {
"allowSyntheticDefaultImports": true
},
"exclude": ["node_modules"]
}
OK disabling automatic type acquisition by adding this did the trick as mentioned here #30122
"typeAcquisition": {
"enable": false
},
I have a similar problem in #30122 when installing with yarn but not when installing with npm
Can anyone try to remove the entire node_modules folder and try with npm and see if the problem is still present?
To verify the fix, test the steps listed in this issue https://github.com/Microsoft/TypeScript/issues/17131
Most helpful comment
@drew-wallace Can you please file a seperate issue with screenshots and sorce code so that I can investigate. Thanks
For anyone running into issues with the VSCode 1.14: You probably don't need to downgrade VSCode, just the TypeScript version. Here are the instructions on that. We previously shipped with TS 2.3.4 so you'll want to try installing that version locally and using it in your workspace