diff --git a/CHANGELOG.md b/CHANGELOG.md index 78bc688..6939e6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [1.1.1] + +- Fixed memory leak due to undisposed decoration types + ## [1.1.0] - Improved icon diff --git a/package-lock.json b/package-lock.json index bf6b281..91a6ccc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hoverlens", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "hoverlens", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "dependencies": { "lodash": "^4.17.21", diff --git a/package.json b/package.json index d675507..35d8dac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hoverlens", - "version": "1.1.0", + "version": "1.1.1", "publisher": "NonSpicyBurrito", "engines": { "vscode": "^1.71.0" 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]) =>