From 1365680190fd7a5f7c42f7658df3f5c1acfc8f58 Mon Sep 17 00:00:00 2001 From: Martin Turon Date: Thu, 30 Jun 2022 19:21:34 -0700 Subject: [PATCH] [vscode] Add file watcher excludes to fix CPU fan spin by cpptools. (#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... --- .vscode/settings.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index ac8bf404d4ec08..a8e2b99d4e8a70 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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": [