mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Lazily create the trace output channel
This commit is contained in:
parent
d805c74c51
commit
56f81ebc3e
2 changed files with 48 additions and 4 deletions
|
@ -4,7 +4,7 @@ import * as ra from "./lsp_ext";
|
|||
|
||||
import { Config, substituteVSCodeVariables } from "./config";
|
||||
import { createClient } from "./client";
|
||||
import { isRustDocument, isRustEditor, log, RustEditor } from "./util";
|
||||
import { isRustDocument, isRustEditor, LazyOutputChannel, log, RustEditor } from "./util";
|
||||
import { ServerStatusParams } from "./lsp_ext";
|
||||
import { PersistentState } from "./persistent_state";
|
||||
import { bootstrap } from "./bootstrap";
|
||||
|
@ -128,9 +128,7 @@ export class Ctx {
|
|||
}
|
||||
|
||||
if (!this.traceOutputChannel) {
|
||||
this.traceOutputChannel = vscode.window.createOutputChannel(
|
||||
"Rust Analyzer Language Server Trace"
|
||||
);
|
||||
this.traceOutputChannel = new LazyOutputChannel("Rust Analyzer Language Server Trace");
|
||||
this.pushExtCleanup(this.traceOutputChannel);
|
||||
}
|
||||
if (!this.outputChannel) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue