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]) =>