about summary refs log tree commit diff
path: root/editors/code/src/commands.ts
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-10-17 15:05:20 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-10-17 15:05:20 +0200
commitd68616a140b35dd9bc4e2982e0993257ab0942e0 (patch)
tree3e5b22940e813be4ca26ad61c66191a5db500554 /editors/code/src/commands.ts
parent8aaafddee8ad709438a663084e6eec8f458bfd50 (diff)
downloadrust-d68616a140b35dd9bc4e2982e0993257ab0942e0.tar.gz
rust-d68616a140b35dd9bc4e2982e0993257ab0942e0.zip
Make more things private
Diffstat (limited to 'editors/code/src/commands.ts')
-rw-r--r--editors/code/src/commands.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index cb088fc6c68..12ceb4f2df8 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -377,8 +377,7 @@ export function syntaxTree(ctx: Ctx): Cmd {
         }
     })();
 
-    void new AstInspector(ctx);
-
+    ctx.pushExtCleanup(new AstInspector(ctx));
     ctx.pushExtCleanup(
         vscode.workspace.registerTextDocumentContentProvider("rust-analyzer-syntax-tree", tdcp)
     );