microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.39k stars 29.32k forks source link

"File: New Folder Relative to Current View" Invoked When Editing Keyboard Settings Causes Tons of Excess Memory/CPU to be Used #91252

Closed macintacos closed 4 years ago

macintacos commented 4 years ago

Issue Type: Bug

I was editing some keyboard shortcuts and wanted to see what would happen when I executed the "File: New Folder Relative to Current View" action. Almost immediately, VSCode began to consume memory and CPU, and made my fans spin up like crazy. Here are some screenshots of CPU and memory from iStat Menus on my Mac:

image

image

This is reliably reproducible; probably because the keyboard settings are located in the user folder or something?

VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:44:27.652Z) OS version: Darwin x64 19.3.0

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|14, 11, 7| |Memory (System)|32.00GB (11.41GB free)| |Process Argv|-psn_0_4674677| |Screen Reader|no| |VM|0%|
Extensions (142) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|2.0.5 html-snippets|abu|0.2.1 scss-lint|ada|0.1.10 vscode-caniuse|aga|0.5.0 vscode-javascript-snippet-pack|aka|0.1.5 project-manager|ale|10.10.0 spellright|ban|3.0.50 vscode-combine-scripts|Bat|2.0.5 search-crates-io|bel|1.2.1 color-info|bie|0.5.1 markdown-checkbox|bie|0.1.3 markdown-emoji|bie|0.0.9 markdown-preview-github-styles|bie|0.1.6 markdown-yaml-preamble|bie|0.0.4 htmltagwrap|bra|0.0.7 better-toml|bun|0.3.2 markdown-jira|chi|1.1.0 npm-intellisense|chr|1.3.0 path-intellisense|chr|1.4.2 open-html-in-browser|cod|0.1.21 gitignore|cod|0.6.0 bracket-pair-colorizer-2|Coe|0.0.29 compulim-vscode-closetag|Com|1.2.0 vscode-svgviewer|css|2.0.0 perl-toolbox|d97|1.4.0 transformer|dak|1.6.0 scala|dal|0.0.5 vue-peek|dar|1.0.2 vscode-markdownlint|Dav|0.34.0 vscode-eslint|dba|2.1.1 vscode-dash|dee|2.3.0 confluence-markup|den|0.1.8 xml|Dot|2.5.0 gitlens|eam|10.2.1 vscode-html-css|ecm|0.2.3 EditorConfig|Edi|0.14.4 vscode-npm-script|eg2|0.3.11 vscode-powertools|ego|0.58.0 LogFileHighlighter|emi|2.7.1 vscode-great-icons|emm|2.1.47 vsc-material-theme|Equ|32.5.0 vsc-material-theme-icons|equ|1.1.4 prettier-vscode|esb|3.20.0 vscode-open-in-github|fab|1.2.3 vimL|fal|0.0.3 markdown-table-formatter|fcr|2.0.3 file-icons|fil|1.0.22 auto-close-tag|for|0.5.6 auto-rename-tag|for|0.1.1 code-runner|for|0.9.16 shell-format|fox|7.0.1 sort-json-array|fvc|1.1.1 nightswitch|gha|1.1.0 vscode-pull-request-github|Git|0.14.0 gc-excelviewer|Gra|2.1.33 todo-tree|Gru|0.0.167 beautify|Hoo|1.5.0 vscode-settings-cycler|hoo|1.0.1 snooty|i80|0.0.10 output-colorizer|IBM|0.1.2 applescript|idl|0.18.1 customize-ui|ioc|0.1.32 monkey-patch|ioc|0.1.7 path-autocomplete|ion|1.13.3 jbockle-format-files|jbo|3.0.0 docthis|joe|0.7.1 intellij-idea-keybindings|k--|0.2.37 vscode-gist|ken|3.0.3 TypeScriptImport|kev|1.17.0 json2csv|kha|0.0.1 vscode-gutter-preview|kis|0.25.0 git-indicators|lam|2.1.2 vscode-fix-checksums|leh|1.1.0 node-module-intellisense|lei|1.5.0 expand-region|let|0.1.4 codeacejumper|luc|3.2.0 bash-ide-vscode|mad|1.4.0 MagicPython|mag|1.1.0 rust-analyzer|mat|0.1.20200217 Lisp|mat|0.1.10 terraform|mau|1.4.0 rainbow-csv|mec|1.5.0 git-graph|mhu|1.21.0 vscode-antlr4|mik|2.2.3 HTMLHint|mka|0.6.0 vscode-html-format|moh|0.0.4 theme-monokai-pro-vscode|mon|1.1.15 vscode-docker|ms-|0.10.0 python|ms-|2020.2.64397 cpptools|ms-|0.26.3 csharp|ms-|1.21.12 Go|ms-|0.13.0 debugger-for-chrome|msj|4.12.6 vuejs-extension-pack|mub|1.1.5 vscode-extension-auto-import|Nuc|1.4.3 vetur|oct|0.23.0 fix-json|oli|0.1.2 advanced-new-file|pat|1.2.0 markdown-checkbox|PKi|1.6.0 vscode-css-peek|pra|3.0.2 seti-icons|qin|0.1.3 java|red|0.57.0 vscode-xml|red|0.10.1 vscode-yaml|red|0.7.2 shellman|Rem|4.4.0 vscode-essentials-snippets|rob|2.0.0 bash-debug|rog|0.3.7 zsh-debug|rog|0.1.3 partial-diff|ryu|1.4.1 multi-command|ryu|1.4.0 vscode-javascript-booster|sbu|0.11.0 crates|ser|0.4.7 code-settings-sync|Sha|3.4.3 trailing-spaces|sha|0.3.1 mdx|sil|0.1.0 vscode-fileutils|sle|3.0.1 guides|spy|0.9.3 autoimport|ste|1.5.3 rewrap|stk|1.9.1 tmlanguage|Tog|0.9.0 ghosttext|tok|1.1.0 vscode-status-bar-format-toggle|tom|2.0.0 go-to-method|tri|0.2.0 terminal-tabs|Tyr|0.2.0 vscode-lldb|vad|1.4.5 highlight-matching-tag|vin|0.9.6 vscodeintellicode|Vis|1.2.5 vscode-java-debug|vsc|0.25.0 vscode-java-dependency|vsc|0.9.0 vscode-java-pack|vsc|0.8.1 vscode-java-test|vsc|0.22.1 vscode-maven|vsc|0.21.0 vscode-icons|vsc|10.0.0 vim|vsc|1.12.4 vscode-todo-highlight|way|1.0.4 change-case|wma|1.0.0 better-align|wwm|1.1.6 JavaScriptSnippets|xab|1.7.2 markdown-all-in-one|yzh|2.7.0 propertylist|zho|0.0.2 material-theme|zhu|3.2.3 html-css-class-completion|Zig|1.19.0 (10 theme extensions excluded)
gjsjohnmurray commented 4 years ago

Does the problem also happen if you first run the command to reload with all extensions disabled?

vscodebot[bot] commented 4 years ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

macintacos commented 4 years ago

Apologies, didn't actually realize that this command was from the File Utils extension; I'll open an issue in that repository and reference this one. Sorry for the trouble.

isidorn commented 4 years ago

Ok, thanks for letting us know.