mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
💚 Clear CommandRegistry on AtomEnvironment destruction
This commit is contained in:
@@ -288,11 +288,13 @@ class AtomEnvironment extends Model
|
||||
destroy: ->
|
||||
return if not @project
|
||||
|
||||
@disposables.dispose()
|
||||
@workspace?.destroy()
|
||||
@workspace = null
|
||||
@themes.workspace = null
|
||||
@project?.destroy()
|
||||
@project = null
|
||||
@commands.clear()
|
||||
|
||||
@uninstallWindowEventHandler()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user