Skip to content

Commit 165462b

Browse files
committed
Rename setting to excludePathsFromActivation
1 parent a1bce79 commit 165462b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

assets/test/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lldb.launch.terminal": "external",
1212
"lldb-dap.detachOnError": true,
1313
"swift.sourcekit-lsp.backgroundIndexing": "off",
14-
"swift.exclude": {
14+
"swift.excludePathsFromActivation": {
1515
"**/excluded": true
1616
}
1717
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@
797797
"markdownDescription": "Disable the running of SourceKit-LSP.",
798798
"markdownDeprecationMessage": "**Deprecated**: Please use `#swift.sourcekit-lsp.disable#` instead."
799799
},
800-
"swift.exclude": {
800+
"swift.excludePathsFromActivation": {
801801
"type": "object",
802802
"additionalProperties": {
803803
"type": "boolean"

src/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,10 @@ const configuration = {
491491
return vscode.workspace.getConfiguration("swift").get<boolean>("disableSandbox", false);
492492
},
493493
/** Workspace folder glob patterns to exclude */
494-
get exclude(): Record<string, boolean> {
494+
get excludePathsFromActivation(): Record<string, boolean> {
495495
return vscode.workspace
496496
.getConfiguration("swift")
497-
.get<Record<string, boolean>>("exclude", {});
497+
.get<Record<string, boolean>>("excludePathsFromActivation", {});
498498
},
499499
};
500500

src/utilities/filesystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function expandFilePathTilde(
8787
function getDefaultExcludeList(): Record<string, boolean> {
8888
const config = vscode.workspace.getConfiguration("files");
8989
const vscodeExcludeList = config.get<{ [key: string]: boolean }>("exclude", {});
90-
const swiftExcludeList = configuration.exclude;
90+
const swiftExcludeList = configuration.excludePathsFromActivation;
9191
return { ...vscodeExcludeList, ...swiftExcludeList };
9292
}
9393

test/unit-tests/sourcekit-lsp/LanguageClientManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ suite("LanguageClientManager Suite", () => {
6969
const mockedVSCodeWindow = mockGlobalObject(vscode, "window");
7070
const mockedVSCodeExtensions = mockGlobalObject(vscode, "extensions");
7171
const mockedVSCodeWorkspace = mockGlobalObject(vscode, "workspace");
72-
const excludeConfig = mockGlobalValue(configuration, "exclude");
72+
const excludeConfig = mockGlobalValue(configuration, "excludePathsFromActivation");
7373
let changeConfigEmitter: AsyncEventEmitter<vscode.ConfigurationChangeEvent>;
7474
let createFilesEmitter: AsyncEventEmitter<vscode.FileCreateEvent>;
7575
let deleteFilesEmitter: AsyncEventEmitter<vscode.FileDeleteEvent>;

userdocs/userdocs.docc/Articles/Reference/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can enable the `searchSubfoldersForPackages` setting so the Swift extension
3434
Additionally you can exclude individual packages from initializing:
3535
```json
3636
{
37-
"swift.exclude": {
37+
"swift.excludePathsFromActivation": {
3838
"**/proj2": true,
3939
"**/aSubfolder": true,
4040
"**/aSubfolder/proj3": false,

0 commit comments

Comments
 (0)