Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit a5b8401

Browse files
committed
Allow extension to be disabled by config
1 parent 1606528 commit a5b8401

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@
8484
"type": "string"
8585
}
8686
},
87+
"sde.enable": {
88+
"type": "boolean",
89+
"default": true,
90+
"description": "Wether SDE shall be executed."
91+
},
8792
"sde.enableTracing.client": {
8893
"type": "boolean",
8994
"default": false,

src/clientMain.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ function shouldBuildOnSave(): boolean {
3838
}
3939

4040
export function activate(context: ExtensionContext) {
41+
if (workspace.getConfiguration().get<boolean>('sde.enable') === false) {
42+
return;
43+
}
4144
//debug
4245
context.subscriptions.push(debug.registerDebugConfigurationProvider('swift', new SwiftConfigurationProvider()));
4346

0 commit comments

Comments
 (0)