Clear destroyed editor ids from TextEditorRegistry's grammar overrides

This commit is contained in:
Max Brunsfeld
2016-08-11 16:48:58 -07:00
parent 0a1834079f
commit ce379d4c9e

View File

@@ -188,6 +188,7 @@ export default class TextEditorRegistry {
this.subscriptions.add(pathChangeSubscription)
return new Disposable(() => {
delete this.editorGrammarOverrides[editor.id]
this.editorsWithMaintainedGrammar.delete(editor)
this.subscriptions.remove(pathChangeSubscription)
pathChangeSubscription.dispose()