-
Notifications
You must be signed in to change notification settings - Fork 12.8k
intellisense stop working on node require() statement #23914
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
Comments
@goonode Can you also please try installing and using typescript@next in your workspace by following these instructions. The quick version:
|
You may also want to try creating a |
From @goonode on April 23, 2018 16:59 @mjbvz I'm just doing it all. Following your instructions in the first test (i had TypeScript version 2.8.1 installed globally) i installed the TypeScript 2.9.0-dev.20180422 locally to the project and i'm using it but the issue persists. Also, for the second test, i created the jsconfig.json, with the same results. However i notice the issue happens only if i type in the code line, and not if i copy and past the whole code line from another file. The exact moment the issue come is when i type in '' (two single quote |
@goonode Did you also select TS 2.9 as the active version in your workspace. You can check this by running the |
From @goonode on April 28, 2018 13:51 @mjbvz Yes, i'm sure and after Also i'm using the latest snapshot of code-insder (code-insider-1.23.0-1524818652_amd64), and the ts version 2.8.3 should be the version bundled in. Also i made a lot of test from my side to try to see if the issue disappear (ie removing .config/Code - Insider folder end restarting from clean configuration, erasing user prefs, using tsconfig.json, and so on) but all without success. ps: the strange thing is if i copy and past a whole "require" line then the intellisense works on that line, but if i type in the line this does not work. |
Ok, thank you for confirming. To help us investigate this ,can you please try collecting the typescript server log while using TypeScript@next:
Look for errors, stack traces, or other suspicious info near the end of the logs. If you can share the logs I can try looking through them to see what is going on
|
From @goonode on May 1, 2018 16:1 It seems to me there is no error in log, could this issue be not related to typescript ? Please, find below, both files created by logger: |
Thanks @goonode The log file comes from 2.9.0-dev.20180422 and I don't see anything obvious in it. Moving over to TS to continue the investigation |
This seems like duplicate of #19458 since in the most completions this was followed by sequence like change, geterr, change, completions resulting in delay of seconds between first change (one before geterrr) to completions. |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
From @goonode on April 22, 2018 8:36
Steps to Reproduce:
Now cpu go to 100% , intellisense stop working (but also code formatter, linting...)
Closing vscode and re-run solve this issue until a new require statement is used.
Does this issue occur when all extensions are disabled?: Yes
update: it seems also the stable release (i tested on code-stable-code_1.22.2-1523551015_amd64) is affected by this issue.
Copied from original issue: microsoft/vscode#48338
The text was updated successfully, but these errors were encountered: