From 1800bfb6e67ab7187f0fa51ca8241e904922ecd8 Mon Sep 17 00:00:00 2001 From: Andrew Ross Date: Fri, 18 Jan 2019 12:59:08 +0200 Subject: 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 --- editors/code/src/config.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'editors/code/src') 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'; import { Server } from './server'; +const RA_LSP_DEBUG = process.env.__RA_LSP_SERVER_DEBUG; + export class Config { public highlightingOn = true; - public raLspServerPath = 'ra_lsp_server'; + public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server'; constructor() { vscode.workspace.onDidChangeConfiguration(_ => @@ -24,7 +26,8 @@ export class Config { } if (config.has('raLspServerPath')) { - this.raLspServerPath = config.get('raLspServerPath') as string; + this.raLspServerPath = + RA_LSP_DEBUG || (config.get('raLspServerPath') as string); } } } -- cgit v1.2.3