aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r--editors/code/src/config.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index afc5cc6af..d8795f3b0 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -9,6 +9,7 @@ export class Config {
9 public enableEnhancedTyping = true; 9 public enableEnhancedTyping = true;
10 public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server'; 10 public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server';
11 public showWorkspaceLoadedNotification = true; 11 public showWorkspaceLoadedNotification = true;
12 public enableCargoWatchOnStartup = true;
12 13
13 private prevEnhancedTyping: null | boolean = null; 14 private prevEnhancedTyping: null | boolean = null;
14 15
@@ -68,5 +69,12 @@ export class Config {
68 this.raLspServerPath = 69 this.raLspServerPath =
69 RA_LSP_DEBUG || (config.get('raLspServerPath') as string); 70 RA_LSP_DEBUG || (config.get('raLspServerPath') as string);
70 } 71 }
72
73 if (config.has('enableCargoWatchOnStartup')) {
74 this.enableCargoWatchOnStartup = config.get<boolean>(
75 'enableCargoWatchOnStartup',
76 true
77 );
78 }
71 } 79 }
72} 80}