mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Revert "Dispose logger on extension deactivation"
This reverts commit 13872543e0
.
That commit was wrong because we use-after-free the logger
This commit is contained in:
parent
13872543e0
commit
46163acf62
2 changed files with 0 additions and 6 deletions
|
@ -49,8 +49,6 @@ async function tryActivate(context: vscode.ExtensionContext) {
|
||||||
);
|
);
|
||||||
context.subscriptions.push(defaultOnEnter);
|
context.subscriptions.push(defaultOnEnter);
|
||||||
|
|
||||||
context.subscriptions.push(log);
|
|
||||||
|
|
||||||
const config = new Config(context);
|
const config = new Config(context);
|
||||||
const state = new PersistentState(context.globalState);
|
const state = new PersistentState(context.globalState);
|
||||||
const serverPath = await bootstrap(config, state).catch(err => {
|
const serverPath = await bootstrap(config, state).catch(err => {
|
||||||
|
|
|
@ -18,10 +18,6 @@ export const log = new class {
|
||||||
private enabled = true;
|
private enabled = true;
|
||||||
private readonly output = vscode.window.createOutputChannel("Rust Analyzer Client");
|
private readonly output = vscode.window.createOutputChannel("Rust Analyzer Client");
|
||||||
|
|
||||||
dispose() {
|
|
||||||
log.output.dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
setEnabled(yes: boolean): void {
|
setEnabled(yes: boolean): void {
|
||||||
log.enabled = yes;
|
log.enabled = yes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue