aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/config.ts
diff options
context:
space:
mode:
authorDaniel McNab <[email protected]>2018-10-08 22:36:47 +0100
committerDaniel McNab <[email protected]>2018-10-08 22:36:47 +0100
commit3a405b65d61a5ad3176c223e4b7226a43fcd186e (patch)
treefb13992dd66d812c4e6fc5f8d70c1e4b55f03375 /editors/code/src/config.ts
parentf4ad36e972989c3feed8671d6d6fca0aed37cd8f (diff)
Add tslint and prettier to ci
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r--editors/code/src/config.ts26
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';
3import { Server } from './server'; 3import { Server } from './server';
4 4
5export class Config { 5export 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}