mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
vscode: eliminate floating promises and insane amount of resource handle leaks
This commit is contained in:
parent
8d0f7da2f5
commit
8153b60e1d
8 changed files with 34 additions and 19 deletions
|
@ -32,6 +32,7 @@ export function activateHighlighting(ctx: Ctx) {
|
|||
|
||||
vscode.workspace.onDidChangeConfiguration(
|
||||
_ => highlighter.removeHighlights(),
|
||||
null,
|
||||
ctx.subscriptions,
|
||||
);
|
||||
|
||||
|
@ -52,6 +53,7 @@ export function activateHighlighting(ctx: Ctx) {
|
|||
);
|
||||
highlighter.setHighlights(editor, decorations);
|
||||
},
|
||||
null,
|
||||
ctx.subscriptions,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue