From 73124a8a51646607b19bf75110c98423f74d96ca Mon Sep 17 00:00:00 2001 From: NonSpicyBurrito Date: Wed, 5 Jul 2023 10:21:00 +0800 Subject: [PATCH] Fixed #2 --- src/extension.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index bd0d06e..806ef87 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -18,9 +18,7 @@ export function activate(context: vscode.ExtensionContext) { ) if (token.isCancellationRequested) return - currentDecorations.forEach(([editor, type]) => - editor.setDecorations(type, []) - ) + currentDecorations.forEach(([, type]) => type.dispose()) currentDecorations = decorations currentDecorations.forEach(([editor, type, line]) =>