From 73124a8a51646607b19bf75110c98423f74d96ca Mon Sep 17 00:00:00 2001 From: NonSpicyBurrito Date: Wed, 5 Jul 2023 10:21:00 +0800 Subject: [PATCH 1/2] 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]) => From 88bb6902e9a36c9b81ab247568d700ba1d829a6c Mon Sep 17 00:00:00 2001 From: NonSpicyBurrito Date: Wed, 5 Jul 2023 10:27:19 +0800 Subject: [PATCH 2/2] Increased version to 1.1.1 --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) 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"