diff options
author | Veetaha <[email protected]> | 2020-02-05 20:39:47 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-05 20:39:47 +0000 |
commit | 8153b60e1d8abdcefbf6c7c9657f1ce65a216d7a (patch) | |
tree | 68f445e973268dffce86c66cfc396c9221bf4ca3 /editors/code/src/highlighting.ts | |
parent | 8d0f7da2f5f2ae1dc5711005f08fde0007da165b (diff) |
vscode: eliminate floating promises and insane amount of resource handle leaks
Diffstat (limited to 'editors/code/src/highlighting.ts')
-rw-r--r-- | editors/code/src/highlighting.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index 66216e0fc..22458a391 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts | |||
@@ -32,6 +32,7 @@ export function activateHighlighting(ctx: Ctx) { | |||
32 | 32 | ||
33 | vscode.workspace.onDidChangeConfiguration( | 33 | vscode.workspace.onDidChangeConfiguration( |
34 | _ => highlighter.removeHighlights(), | 34 | _ => highlighter.removeHighlights(), |
35 | null, | ||
35 | ctx.subscriptions, | 36 | ctx.subscriptions, |
36 | ); | 37 | ); |
37 | 38 | ||
@@ -52,6 +53,7 @@ export function activateHighlighting(ctx: Ctx) { | |||
52 | ); | 53 | ); |
53 | highlighter.setHighlights(editor, decorations); | 54 | highlighter.setHighlights(editor, decorations); |
54 | }, | 55 | }, |
56 | null, | ||
55 | ctx.subscriptions, | 57 | ctx.subscriptions, |
56 | ); | 58 | ); |
57 | } | 59 | } |