mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Allow user to set path to ra_lsp_server in vscode settings
This commit is contained in:
parent
8d51b02362
commit
a6e04cfa7f
3 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue