Description
Issue Type: Performance Issue
Screen record available on Imgur:
View post on imgur.com
The slowness happens since I resolved a conflict on my node_modules and did the npm audit fix
, I think it's related to dependencies but I have no idea how to further find out the problem.
Before resolving the conflict of ajv
(the project is planning to use v8 while my dependency, schema-utils
uses v6), the intellisense has no problem, and after I installed ajv
with flag --legacy-peer-deps
and did npm audit fix
, the intellisense started to get delay.
Here is what npm list ajv
looks like.
[email protected] D:\Programming\nodejs\webpack-tampermonkey
├─┬ @microsoft/[email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ @eslint/[email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected]
└─┬ [email protected]
└─┬ @semantic-release/[email protected]
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
The CPU raises about 25% when performing intellisense and drop to 0% after intellisense done. I use keyboard shortcut to trigger it. There is still much CPU and memory available but the intellisense is slow.
VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz (4 x 3504) |
GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 31.92GB (18.33GB free) |
Process Argv | --folder-uri file:///d%3A/Programming/nodejs/webpack-tampermonkey --crash-reporter-id a1c09b66-09d4-4443-84a2-b604c0c0e983 |
Screen Reader | no |
VM | 0% |
Process Info
CPU % Mem MB PID Process
2 94 15732 code main
1 291 3904 gpu-process
0 21 4520 crashpad-handler
0 36 7232 utility
0 228 11400 window (● UserscriptPlugin.ts - webpack-tampermonkey - Visual Studio Code)
0 101 9696 extensionHost
0 68 8148 electron_node tsserver.js
0 92 11484 "C:\Users\momocow\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\momocow\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=9696
27 204 12644 electron_node tsserver.js
0 56 16944 electron_node typingsInstaller.js typesMap.js
0 56 13808 searchService
0 15 15344 watcherService
0 5 15636 console-window-host (Windows internal process)
0 76 15712 shared-process
0 61 8408 ptyHost
0 6 15460 console-window-host (Windows internal process)
0 51 15540 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
0 80 17352 window (問題回報程式)
Workspace Info
| Window (● UserscriptPlugin.ts - webpack-tampermonkey - Visual Studio Code)
| Folder (webpack-tampermonkey): 59 files
| File types: ts(26) json(8) js(4) yml(2) md(2) eslintignore(1)
| gitignore(1)
| Conf files: package.json(1) tsconfig.json(1);
Extensions (1)
Extension | Author (truncated) | Version |
---|---|---|
vscode-language-pack-zh-hant | MS- | 1.58.8 |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
pythonvssor306cf:30341832
bridge0708:30335490