Skip to content

Commit 2b0038e

Browse files
committed
vscode: avoid high CPU usage via search
The search feature in VS Code is quite nice, except when it bogs down the processor by trying to index files that aren't meant to be searchable, such as `node_modules/`. While at it, also exclude the same folders from the file watcher, and restrict the often-rampant `ripgrep` processes to play nicely already. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 153badf commit 2b0038e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.vscode/settings.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,24 @@
115115
"cSpell.ignorePaths": [
116116
"node_modules",
117117
"**/node_modules"
118-
]
118+
],
119+
"search.ripgrep.maxThreads": 1,
120+
"search.exclude": {
121+
"**/.git": true,
122+
"**/build": true,
123+
"**/dist": true,
124+
"**/git.git": true,
125+
"**/mailing-list-mirror.git": true,
126+
"**/node_modules": true,
127+
"**/.test*": true,
128+
},
129+
"files.watcherExclude": {
130+
"**/.git": true,
131+
"**/build": true,
132+
"**/dist": true,
133+
"**/git.git": true,
134+
"**/mailing-list-mirror.git": true,
135+
"**/node_modules": true,
136+
"**/.test*": true,
137+
}
119138
}

0 commit comments

Comments
 (0)