Skip to content

Commit

Permalink
[vscode] Add file watcher excludes to fix CPU fan spin by cpptools. (#…
Browse files Browse the repository at this point in the history
…20193)

On mac os especially, just opening projectchip in vscode would hold one
CPU spinning at 98% by a cpptools process owned by vscode.
This patch to settings.json excludes the file watcher from endless
recursion via examples/**/third_party/connectedhomeip...
  • Loading branch information
turon authored and pull[bot] committed Aug 12, 2022
1 parent e5a9be6 commit 1365680
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@
"random": "cpp",
"thread": "cpp"
},
// Configure paths or glob patterns to exclude from file watching.
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"out/": true,
"**/third_party/**": true
},
"files.eol": "\n",
"editor.formatOnSave": true,
"better-comments.tags": [
Expand Down

0 comments on commit 1365680

Please sign in to comment.