Guard auto cargo watch behind a config option
This commit is contained in:
@@ -9,6 +9,7 @@ export class Config {
|
||||
public enableEnhancedTyping = true;
|
||||
public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server';
|
||||
public showWorkspaceLoadedNotification = true;
|
||||
public enableCargoWatchOnStartup = true;
|
||||
|
||||
private prevEnhancedTyping: null | boolean = null;
|
||||
|
||||
@@ -68,5 +69,12 @@ export class Config {
|
||||
this.raLspServerPath =
|
||||
RA_LSP_DEBUG || (config.get('raLspServerPath') as string);
|
||||
}
|
||||
|
||||
if (config.has('enableCargoWatchOnStartup')) {
|
||||
this.enableCargoWatchOnStartup = config.get<boolean>(
|
||||
'enableCargoWatchOnStartup',
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user