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.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/editors/code/src/server.ts b/editors/code/src/server.ts
index 0d2632708..9ead87fae 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,20 @@ export class Server {
19 run, 20 run,
20 debug: run 21 debug: run
21 }; 22 };
23 const traceOutputChannel = window.createOutputChannel(
24 'Rust Analyzer Language Server Trace'
25 );
22 const clientOptions: lc.LanguageClientOptions = { 26 const clientOptions: lc.LanguageClientOptions = {
23 documentSelector: [{ scheme: 'file', language: 'rust' }], 27 documentSelector: [{ scheme: 'file', language: 'rust' }],
24 initializationOptions: { 28 initializationOptions: {
25 publishDecorations: true 29 publishDecorations: true
26 } 30 },
31 traceOutputChannel
27 }; 32 };
28 33
29 Server.client = new lc.LanguageClient( 34 Server.client = new lc.LanguageClient(
30 'ra-lsp', 35 'rust-analyzer',
31 'rust-analyzer language server', 36 'Rust Analyzer Language Server',
32 serverOptions, 37 serverOptions,
33 clientOptions 38 clientOptions
34 ); 39 );