microsoft / vscode

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

vscode freezes every 3-5minutes randomly #124723

Closed alexbi29 closed 3 years ago

alexbi29 commented 3 years ago

Version: 1.56.2 Commit: 054a9295330880ed74ceaedda236253b4f39a335 Date: 2021-05-12T17:44:30.902Z (2 wks ago) Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Darwin x64 20.5.0

remote ssh to linux host.

only extensions installed: remote-ssh, c/c++

Log (Window) shows this:

[2021-05-26 19:46:58.540] [renderer4] [warning] {}
[2021-05-26 19:47:03.024] [renderer4] [warning] {}
[2021-05-26 19:48:00.725] [renderer4] [error] Maximum call stack size exceeded: RangeError: Maximum call stack size exceeded
    at l._entries (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:62:7277)
    at l._entries (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:62:7296)
    at _entries.next (<anonymous>)
    at l._entries (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:62:7383)
    at _entries.next (<anonymous>)
...
alexbi29 commented 3 years ago

I'm connected to linux box w/ "remote - ssh" plugin - the killer feature of vscode. The slowdown though is on UI side of vscode.

i read through that bug. Looks like files.watcherExclude has a bug, b/c adding '/': true fixed it, even though i had it set up like this before (which should have taken care of bazel-: "files.watcherExclude": { "/.git": true, "/pycache/": true, "/mypy_cache/": true, "/bazel-": true, "vendor/": true, "/bin/": true } Thank you so much for the help Benjamin, /** worked like a charm to disable watcher.

bpasero commented 3 years ago

For exclude patterns I typically recommend to use **, so for example **/pycache/** should also work.

alexbi29 commented 3 years ago

That's what i'm using, github formatter killed : ` added: '/': true was: "files.watcherExclude": { "/.git": true, "/pycache/": true, "/mypy_cache/": true, "*/bazel-": true, "vendor/": true, "**/bin/": true } `