aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/util.ts
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-07-05 19:10:31 +0100
committerVeetaha <[email protected]>2020-07-05 19:10:31 +0100
commit46163acf62a94ec603be444294e119933c953a84 (patch)
tree6ab6a643f8ae0d4486b4078c757f8a31a93d0111 /editors/code/src/util.ts
parent13872543e074adc153b440660beda441fd562f53 (diff)
Revert "Dispose logger on extension deactivation"
This reverts commit 13872543e074adc153b440660beda441fd562f53. That commit was wrong because we use-after-free the logger
Diffstat (limited to 'editors/code/src/util.ts')
-rw-r--r--editors/code/src/util.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/editors/code/src/util.ts b/editors/code/src/util.ts
index 6b07d448b..78fe6f5da 100644
--- a/editors/code/src/util.ts
+++ b/editors/code/src/util.ts
@@ -18,10 +18,6 @@ export const log = new class {
18 private enabled = true; 18 private enabled = true;
19 private readonly output = vscode.window.createOutputChannel("Rust Analyzer Client"); 19 private readonly output = vscode.window.createOutputChannel("Rust Analyzer Client");
20 20
21 dispose() {
22 log.output.dispose();
23 }
24
25 setEnabled(yes: boolean): void { 21 setEnabled(yes: boolean): void {
26 log.enabled = yes; 22 log.enabled = yes;
27 } 23 }