diff options
author | Andrew Ross <[email protected]> | 2019-01-18 10:59:08 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:36:54 +0000 |
commit | 1800bfb6e67ab7187f0fa51ca8241e904922ecd8 (patch) | |
tree | 50b642b7cd89beca48a622b4380ebd183da9e462 /editors/code/src | |
parent | 168c46ab777f6e3263bb2e58f0ce9b0b1619114e (diff) |
Config for raLspServerPath will be overwritten if __RA_LSP_SERVER_DEBUG is set
Changed presentation from clear to reveal silent
Removed the vscode gitignore entry
Added debugging documentation
Added tasks and launch configs
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 | } |