Skip to content

Commit

Permalink
Merge pull request #3 from NonSpicyBurrito/develop
Browse files Browse the repository at this point in the history
Release 1.1.1
  • Loading branch information
NonSpicyBurrito authored Jul 5, 2023
2 parents ce459a0 + 88bb690 commit 62221ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [1.1.1]

- Fixed memory leak due to undisposed decoration types

## [1.1.0]

- Improved icon
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hoverlens",
"version": "1.1.0",
"version": "1.1.1",
"publisher": "NonSpicyBurrito",
"engines": {
"vscode": "^1.71.0"
Expand Down
4 changes: 1 addition & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) =>
Expand Down

0 comments on commit 62221ff

Please sign in to comment.