mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Add support for a seperate output channel for trace messages
This commit is contained in:
parent
166c720425
commit
9138317021
3 changed files with 13 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
|||
import * as lc from 'vscode-languageclient';
|
||||
|
||||
import { window } from 'vscode';
|
||||
import { Config } from './config';
|
||||
import { Highlighter } from './highlighting';
|
||||
|
||||
|
@ -19,16 +20,18 @@ export class Server {
|
|||
run,
|
||||
debug: run
|
||||
};
|
||||
const traceOutputChannel = window.createOutputChannel('Rust Analyzer Language Server Trace');
|
||||
const clientOptions: lc.LanguageClientOptions = {
|
||||
documentSelector: [{ scheme: 'file', language: 'rust' }],
|
||||
initializationOptions: {
|
||||
publishDecorations: true
|
||||
}
|
||||
},
|
||||
traceOutputChannel
|
||||
};
|
||||
|
||||
Server.client = new lc.LanguageClient(
|
||||
'ra-lsp',
|
||||
'rust-analyzer language server',
|
||||
'Rust Analyzer Language Server',
|
||||
serverOptions,
|
||||
clientOptions
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue