diff options
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/config.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index cd0c6e6e2..cc7a10f76 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts | |||
@@ -2,9 +2,11 @@ import * as vscode from 'vscode'; | |||
2 | 2 | ||
3 | import { Server } from './server'; | 3 | import { Server } from './server'; |
4 | 4 | ||
5 | const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG; | ||
6 | |||
5 | export class Config { | 7 | export class Config { |
6 | public highlightingOn = true; | 8 | public highlightingOn = true; |
7 | public raLspServerPath = 'ra_lsp_server'; | 9 | public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server'; |
8 | 10 | ||
9 | constructor() { | 11 | constructor() { |
10 | vscode.workspace.onDidChangeConfiguration(_ => | 12 | vscode.workspace.onDidChangeConfiguration(_ => |
@@ -24,7 +26,8 @@ export class Config { | |||
24 | } | 26 | } |
25 | 27 | ||
26 | if (config.has('raLspServerPath')) { | 28 | if (config.has('raLspServerPath')) { |
27 | this.raLspServerPath = config.get('raLspServerPath') as string; | 29 | this.raLspServerPath = |
30 | RA_LSP_DEBUG || (config.get('raLspServerPath') as string); | ||
28 | } | 31 | } |
29 | } | 32 | } |
30 | } | 33 | } |