Skip to content

Commit

Permalink
fix: only delete if editorsMinimaps is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 17, 2021
1 parent 2b665ec commit 464a8cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/minimap.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ export default class Minimap {
}),

this.textEditor.onDidDestroy(() => {
editorsMinimaps.delete(this.textEditor)
if (editorsMinimaps) {
editorsMinimaps.delete(this.textEditor)
}
this.destroy()
}),

Expand Down

0 comments on commit 464a8cf

Please sign in to comment.