Skip to content

Commit 464a8cf

Browse files
committed
fix: only delete if editorsMinimaps is not null
1 parent 2b665ec commit 464a8cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/minimap.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ export default class Minimap {
269269
}),
270270

271271
this.textEditor.onDidDestroy(() => {
272-
editorsMinimaps.delete(this.textEditor)
272+
if (editorsMinimaps) {
273+
editorsMinimaps.delete(this.textEditor)
274+
}
273275
this.destroy()
274276
}),
275277

0 commit comments

Comments
 (0)