mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Make rainbows optional
This commit is contained in:
parent
4ac338b608
commit
1e6ba19015
5 changed files with 29 additions and 6 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue