Skip to content

Commit

Permalink
Fix issue #600
Browse files Browse the repository at this point in the history
Disposes of the decoration when the InactiveRegionsFeature
is itself disposed.
  • Loading branch information
Baricus committed Mar 23, 2024
1 parent 2aa4f42 commit 6f3809b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/inactive-regions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,8 @@ export class InactiveRegionsFeature implements vscodelc.StaticFeature {
}

getState(): vscodelc.FeatureState { return {kind: 'static'}; }
dispose() {}
}

// clears inactive region decorations on disposal so they don't persist after
// extension is deactivated
dispose() { this.decorationType?.dispose(); }
}

0 comments on commit 6f3809b

Please sign in to comment.