soates / Auto-Import

vscode extension that will automatically finds, parses and provides code actions for all available imports. Only currently works with files in your folder and TypeScript.
MIT License
165 stars 62 forks source link

Autocomplete is super slow on vscode #128

Open livingforjesus opened 10 months ago

livingforjesus commented 10 months ago

Type: Performance Issue

Autocomplete is making my dev process rlly slow in vscode. Trying to click ctrl+space to autocomplete is super slow in vscode.

It takes a really long time to do anything

Extension version: 1.5.4 VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:48:16.874Z) OS version: Darwin arm64 23.2.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Max (10 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|3, 5, 5| |Memory (System)|32.00GB (6.70GB free)| |Process Argv|--crash-reporter-id 0e765572-8ee4-44a7-bd17-1161a1b8900f| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 49 229 35363 code main 1 98 35366 gpu-process 0 33 35367 utility-network-service 1 557 35370 window [1] (CreateProductSet.tsx — rip-technologies) 0 66 35385 ptyHost 0 0 35389 /bin/zsh -il 0 0 35390 /bin/zsh -il 0 0 35392 /bin/zsh -il 0 131 35387 shared-process 0 0 37956 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 98 37799 window [2] (Issue Reporter) 0 66 37809 fileWatcher [1] 0 262 37810 extensionHost [1] 0 98 37818 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=3072 /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /var/folders/ms/4qyylqqj55q1ztsw56d6cbdh0000gn/T/vscode-typescript501/fab15429a9f3089bdf6b/tscancellation-814c79c56207243f9d5c.tmp* --globalPlugins astro-ts-plugin-bundle --pluginProbeLocations /Users/visiononyeaku/.vscode/extensions/astro-build.astro-vscode-2.6.2-darwin-arm64 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 492 37819 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=3072 /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/ms/4qyylqqj55q1ztsw56d6cbdh0000gn/T/vscode-typescript501/fab15429a9f3089bdf6b/tscancellation-ed2f3e61939e9b1805e7.tmp* --globalPlugins astro-ts-plugin-bundle --pluginProbeLocations /Users/visiononyeaku/.vscode/extensions/astro-build.astro-vscode-2.6.2-darwin-arm64 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc) 0 66 37821 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/visiononyeaku/Library/Caches/typescript/5.3 --enableTelemetry --typesMapLocation /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation) 0 66 37820 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/visiononyeaku/.vscode/extensions/prisma.prisma-5.8.0/node_modules/@prisma/language-server/dist/src/bin.js --node-ipc --clientProcessId=37810) 0 66 37834 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/visiononyeaku/.vscode/extensions/ckolkman.vscode-postgres-1.4.3/out/language/server.js --node-ipc --clientProcessId=37810) 0 197 37846 /Users/visiononyeaku/.vscode/extensions/hashicorp.terraform-2.29.1-darwin-arm64/bin/terraform-ls serve 0 66 37860 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --dns-result-order=ipv4first /Users/visiononyeaku/.vscode/extensions/arm.device-manager-1.9.8/dist/desktop/usb-client.js) 0 524 37864 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/visiononyeaku/.vscode/extensions/dbaeumer.vscode-eslint-2.4.2/server/out/eslintServer.js --node-ipc --clientProcessId=37810) ```
Workspace Info ``` | Window (CreateProductSet.tsx — rip-technologies) | Folder (rip-technologies): 11096 files | File types: js(1129) ts(894) tsx(888) map(675) webp(654) html(648) | cookie(583) json(356) jsx(195) png(122) | Conf files: package.json(56) tsconfig.json(50) project.json(6) | dockerfile(4) github-actions(3) launch.json(1) | settings.json(1) | Launch Configs: node-terminal; ```
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 vsclangdf:30486550 c4g48928:30535728 azure-dev_surveyone:30548225 0bi6i642:30933247 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 dsvsc019acf:30933242 ```
raykle commented 8 months ago

+1

Looyank commented 7 months ago

Yes, I used extension bisect and found out that it was the auto import plugin that was causing my cpu (code helper plugin) usage to skyrocket and my computer to become laggy.

raykle commented 7 months ago

Yes, I used extension bisect and found out that it was the auto import plugin that was causing my cpu (code helper plugin) usage to skyrocket and my computer to become laggy.

Me too!!!

ColinCee commented 3 months ago

+1, used bisect and found this was the extension blowing up my cpu with rg processes

johndbell commented 2 months ago

+1, used bisect and found this was the extension blowing up my cpu with rg processes

+1 - system becomes unusable due to cpu overload and rg processes, particularly when doing an npm install