Make rainbows optional

This commit is contained in:
Pascal Hertleif 2019-05-27 11:26:15 +02:00
parent 4ac338b608
commit 1e6ba19015
5 changed files with 29 additions and 6 deletions

View file

@ -15,6 +15,7 @@ export interface CargoWatchOptions {
export class Config {
public highlightingOn = true;
public rainbowHighlightingOn = false;
public enableEnhancedTyping = true;
public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server';
public showWorkspaceLoadedNotification = true;
@ -39,6 +40,12 @@ export class Config {
this.highlightingOn = config.get('highlightingOn') as boolean;
}
if (config.has('rainbowHighlightingOn')) {
this.rainbowHighlightingOn = config.get(
'rainbowHighlightingOn'
) as boolean;
}
if (config.has('showWorkspaceLoadedNotification')) {
this.showWorkspaceLoadedNotification = config.get(
'showWorkspaceLoadedNotification'