vscode: Intellisense menu very slow to open (.js files)

Issue still occurs with all extensions disabled.

  • VS Code Version: 1.57.1
  • OS Version: Windows x64 10.0.17763

Steps to Reproduce:

  1. code . --disable-extensions
  2. Open a .js file and begin typing the start of a snippet
  3. Wait 500-5000+ ms
  4. Intellisense menu opens with snippet suggested

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

Try disabling “TypeScript and JavaScript Language Features”. It is Vs Code built in extension and disabling this fixed this issue for me.

  1. Ctrl + Shift + P
  2. Type TypeScript
  3. Click “TypeScript: Open TS Server log”
  4. At the bottom right, there will appear a notification. Click Setting icon on the notification and then manage extension.
  5. Disable it.

Oooo… so far so good… thanks @longbuibao !!!

@dancherb so if you are working on a standard javascript projects, I think you have to install typescript globally by npm install -g typescript@3.8.3 Find your location of node_modules folder (here) and then in vscode, press Ctrl + , to open setting find typescript.version, click on Edit in settings.json and paste your node_modules path in

{
  "typescript.tsdk": "some/path/to/node_modules/typescript/lib"
}

I’ve been struggling for a few days to this issue and eventually solved by downgrading the typescript version to 3.8.3! (solution on issue #95200) Anyway as far as I know, this issue is strongly relevent to tsserver.js, that is the vscode electron_node process running background, occupying more than 100% of cpu.

npm install —save-dev typescript@3.8.3


// settings.json(workspace)
{
  "typescript.tsdk": "./node_modules/typescript/lib"
}

command > Typescript: Select Typescript Version…