You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add cmake.exclude setting to allow for multi-root scenarios to ignore certain folders (#4440)
* Add the cmake.ignoredFolders setting.
Added the ignoredFolders setting in the code such that it compiles.
TODO to implement the usage of this setting in the extension.
* update changelog, docs, and description
* modify folderToProjectsMap to hold a vscode.WorkspaceFolder rather than string as key
* rename loadAllProjects to loadAllFolders and add comment explaining what I think we should refactor
* fix incorrect rebase
* saving progress
* make ignore logic more specific, handle removal from test explorer when sourceDirectory is changed
* remove duplicate docs/cmake-settings entry
* slight refactors to make more performant
* fix workspace ignoredFolder handler to fix multiple invocation issue
* use a more vscode-y name with cmake.exclude rather than cmake.ignoredFolders
* fix string
* update to ensure that the activeFolder updates accordingly
* add telemetry
* remove unused import
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ Features:
7
7
- Add an option to specify the launch target for debugging CTest tests. [#4273](https://github.com/microsoft/vscode-cmake-tools/pull/4273)
8
8
- Add a setting to enable/disable our built-in language services. [#4290](https://github.com/microsoft/vscode-cmake-tools/issues/4290)
9
9
- Add an option to group the default build target dropdown using CMake groups [#3953](https://github.com/microsoft/vscode-cmake-tools/pull/3953)[@itzandroidtab](https://github.com/itzandroidtab)
10
+
- Add `cmake.exclude` setting that allows users to set folders that they want the CMake Tools extension to ignore. [#4112](https://github.com/microsoft/vscode-cmake-tools/issues/4112)
Copy file name to clipboardExpand all lines: docs/cmake-settings.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ Options that support substitution, in the table below, allow variable references
52
52
|`cmake.enableLanguageServices`| If `true`, enable CMake language services. |`true`| no |
53
53
|`cmake.enableTraceLogging`| If `true`, enable trace logging. |`false`| no |
54
54
|`cmake.environment`| An object containing `key:value` pairs of environment variables, which will be available when configuring, building, or testing with CTest. |`{}` (no environment variables) | yes |
55
+
|`cmake.exclude`| CMake Tools will ignore the folders defined in this setting. |`[]`| no |
55
56
|`cmake.exportCompileCommandsFile`| If `true`, generate the compile_commands.json file. |`true`| no |
56
57
|`cmake.generator`| Set to a string to override CMake Tools preferred generator logic. If set, CMake will unconditionally use it as the `-G` CMake generator command line argument. |`null`| no |
57
58
|`cmake.ignoreCMakeListsMissing`| If `true`, do not show error when opening a project without CMakeLists.txt. |`false`| no |
Copy file name to clipboardExpand all lines: package.nls.json
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,7 @@
200
200
"cmake-tools.configuration.cmake.enableTraceLogging.description": "Enable trace logging to file and console (very noisy).",
201
201
"cmake-tools.configuration.cmake.autoSelectActiveFolder.description": "Select active folder automatically.",
202
202
"cmake-tools.configuration.cmake.defaultActiveFolder.description": "Set the default active folder (only works when cmake.autoSelectActiveFolder is disable).",
203
+
"cmake-tools.configuration.cmake.exclude.description": "The extension will ignore the folders listed in this setting. The folders should be listed as absolute paths.",
203
204
"cmake-tools.configuration.cmake.touchbar.advanced.description": "Configures advanced settings for how the extension displays buttons on a MacBook Touch Bar.",
204
205
"cmake-tools.configuration.cmake.touchbar.visibility.description": "Configures how the extension displays the buttons on a MacBook Touch Bar.",
205
206
"cmake-tools.configuration.cmake.touchbar.visibility.default.description": "Show Touch Bar buttons on supported systems.",
0 commit comments