aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/server.ts')
-rw-r--r--editors/code/src/server.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/editors/code/src/server.ts b/editors/code/src/server.ts
index 0d2632708..7bb0e56ca 100644
--- a/editors/code/src/server.ts
+++ b/editors/code/src/server.ts
@@ -1,5 +1,6 @@
1import * as lc from 'vscode-languageclient'; 1import * as lc from 'vscode-languageclient';
2 2
3import { window } from 'vscode';
3import { Config } from './config'; 4import { Config } from './config';
4import { Highlighter } from './highlighting'; 5import { Highlighter } from './highlighting';
5 6
@@ -19,16 +20,18 @@ export class Server {
19 run, 20 run,
20 debug: run 21 debug: run
21 }; 22 };
23 const traceOutputChannel = window.createOutputChannel('Rust Analyzer Language Server Trace');
22 const clientOptions: lc.LanguageClientOptions = { 24 const clientOptions: lc.LanguageClientOptions = {
23 documentSelector: [{ scheme: 'file', language: 'rust' }], 25 documentSelector: [{ scheme: 'file', language: 'rust' }],
24 initializationOptions: { 26 initializationOptions: {
25 publishDecorations: true 27 publishDecorations: true
26 } 28 },
29 traceOutputChannel
27 }; 30 };
28 31
29 Server.client = new lc.LanguageClient( 32 Server.client = new lc.LanguageClient(
30 'ra-lsp', 33 'ra-lsp',
31 'rust-analyzer language server', 34 'Rust Analyzer Language Server',
32 serverOptions, 35 serverOptions,
33 clientOptions 36 clientOptions
34 ); 37 );