Skip to content

Commit 9138317

Browse files
committed
Add support for a seperate output channel for trace messages
1 parent 166c720 commit 9138317

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

editors/code/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"singleQuote": true
3232
},
3333
"dependencies": {
34-
"vscode-languageclient": "^5.2.1"
34+
"vscode-languageclient": "^5.3.0-next.1"
3535
},
3636
"devDependencies": {
3737
"@types/mocha": "^5.2.5",

editors/code/src/server.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as lc from 'vscode-languageclient';
22

3+
import { window } from 'vscode';
34
import { Config } from './config';
45
import { Highlighter } from './highlighting';
56

@@ -19,16 +20,18 @@ export class Server {
1920
run,
2021
debug: run
2122
};
23+
const traceOutputChannel = window.createOutputChannel('Rust Analyzer Language Server Trace');
2224
const clientOptions: lc.LanguageClientOptions = {
2325
documentSelector: [{ scheme: 'file', language: 'rust' }],
2426
initializationOptions: {
2527
publishDecorations: true
26-
}
28+
},
29+
traceOutputChannel
2730
};
2831

2932
Server.client = new lc.LanguageClient(
3033
'ra-lsp',
31-
'rust-analyzer language server',
34+
'Rust Analyzer Language Server',
3235
serverOptions,
3336
clientOptions
3437
);

0 commit comments

Comments
 (0)