Skip to content

Commit 1a57bd3

Browse files
authored
Merge pull request #44 from UziTech/clear-map
fix: fix deactivate
2 parents b6ace78 + 6b1be0f commit 1a57bd3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/minimap-find-and-replace.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,12 @@ module.exports = {
105105
for (const subscription of subscriptions) {
106106
subscription.dispose()
107107
}
108+
this.subscriptionsById.clear()
108109

109110
const bindings = this.bindingsById.values()
110111
for (const binding of bindings) {
111112
binding.destroy()
112113
}
113-
114-
this.bindingsById = {}
115-
this.subscriptionsById = {}
114+
this.bindingsById.clear()
116115
},
117116
}

0 commit comments

Comments
 (0)