mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Clear destroyed editor ids from TextEditorRegistry's grammar overrides
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user