From a6e04cfa7fbc2baaf5fabb8a07093034d4d761e4 Mon Sep 17 00:00:00 2001 From: gentoo90 Date: Sat, 5 Jan 2019 17:28:41 +0200 Subject: Allow user to set path to ra_lsp_server in vscode settings --- editors/code/src/config.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editors/code/src/config.ts') diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 7d05ea078..cd0c6e6e2 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -4,6 +4,7 @@ import { Server } from './server'; export class Config { public highlightingOn = true; + public raLspServerPath = 'ra_lsp_server'; constructor() { vscode.workspace.onDidChangeConfiguration(_ => @@ -21,5 +22,9 @@ export class Config { if (!this.highlightingOn && Server) { Server.highlighter.removeHighlights(); } + + if (config.has('raLspServerPath')) { + this.raLspServerPath = config.get('raLspServerPath') as string; + } } } -- cgit v1.2.3