diff options
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/config.ts | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 740b5be20..b9ff3b810 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts | |||
@@ -3,21 +3,21 @@ import * as vscode from 'vscode'; | |||
3 | import { Server } from './server'; | 3 | import { Server } from './server'; |
4 | 4 | ||
5 | export class Config { | 5 | export class Config { |
6 | public highlightingOn = true; | 6 | public highlightingOn = true; |
7 | 7 | ||
8 | constructor() { | 8 | constructor() { |
9 | vscode.workspace.onDidChangeConfiguration((_) => this.userConfigChanged()); | 9 | vscode.workspace.onDidChangeConfiguration((_) => this.userConfigChanged()); |
10 | this.userConfigChanged(); | 10 | this.userConfigChanged(); |
11 | } | 11 | } |
12 | 12 | ||
13 | public userConfigChanged() { | 13 | public userConfigChanged() { |
14 | const config = vscode.workspace.getConfiguration('ra-lsp'); | 14 | const config = vscode.workspace.getConfiguration('ra-lsp'); |
15 | if (config.has('highlightingOn')) { | 15 | if (config.has('highlightingOn')) { |
16 | this.highlightingOn = config.get('highlightingOn') as boolean; | 16 | this.highlightingOn = config.get('highlightingOn') as boolean; |
17 | } | 17 | } |
18 | 18 | ||
19 | if (!this.highlightingOn && Server) { | 19 | if (!this.highlightingOn && Server) { |
20 | Server.highlighter.removeHighlights(); | 20 | Server.highlighter.removeHighlights(); |
21 | } | ||
22 | } | 21 | } |
22 | } | ||
23 | } | 23 | } |