We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3602f07 commit 1387254Copy full SHA for 1387254
editors/code/src/main.ts
@@ -49,6 +49,8 @@ async function tryActivate(context: vscode.ExtensionContext) {
49
);
50
context.subscriptions.push(defaultOnEnter);
51
52
+ context.subscriptions.push(log);
53
+
54
const config = new Config(context);
55
const state = new PersistentState(context.globalState);
56
const serverPath = await bootstrap(config, state).catch(err => {
editors/code/src/util.ts
@@ -18,6 +18,10 @@ export const log = new class {
18
private enabled = true;
19
private readonly output = vscode.window.createOutputChannel("Rust Analyzer Client");
20
21
+ dispose() {
22
+ log.output.dispose();
23
+ }
24
25
setEnabled(yes: boolean): void {
26
log.enabled = yes;
27
}
0 commit comments