diff options
author | Igor Matuszewski <[email protected]> | 2019-03-18 21:35:47 +0000 |
---|---|---|
committer | Igor Matuszewski <[email protected]> | 2019-03-18 21:35:47 +0000 |
commit | 7c2595c26820917fa9ad1b1c36f01fc6ac979287 (patch) | |
tree | db71a710ca08293583163677aae0ca07a704adfc /editors/code/src/commands | |
parent | 60cac299640912ad1ad75644bfa0088d7ba6e367 (diff) |
Guard auto cargo watch behind a config option
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r-- | editors/code/src/commands/runnables.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/src/commands/runnables.ts b/editors/code/src/commands/runnables.ts index 285afaaf6..74407dc3e 100644 --- a/editors/code/src/commands/runnables.ts +++ b/editors/code/src/commands/runnables.ts | |||
@@ -153,6 +153,10 @@ export const autoCargoWatchTask: vscode.Task = { | |||
153 | * that, when accepted, allow us to `cargo install cargo-watch` and then run it. | 153 | * that, when accepted, allow us to `cargo install cargo-watch` and then run it. |
154 | */ | 154 | */ |
155 | export async function interactivelyStartCargoWatch() { | 155 | export async function interactivelyStartCargoWatch() { |
156 | if (!Server.config.enableCargoWatchOnStartup) { | ||
157 | return; | ||
158 | } | ||
159 | |||
156 | const execAsync = util.promisify(exec); | 160 | const execAsync = util.promisify(exec); |
157 | 161 | ||
158 | const watch = await vscode.window.showInformationMessage( | 162 | const watch = await vscode.window.showInformationMessage( |