mirror of
https://github.com/atom/atom.git
synced 2026-02-11 23:25:03 -05:00
Introduce ApplicationDelegate to AtomEnvironment
All external actions are performed via this delegate for test-isolation purposes.
This commit is contained in:
@@ -216,11 +216,6 @@ class AtomApplication
|
||||
@killAllProcesses()
|
||||
@deleteSocketFile()
|
||||
|
||||
app.on 'will-exit', =>
|
||||
@saveState(false)
|
||||
@killAllProcesses()
|
||||
@deleteSocketFile()
|
||||
|
||||
app.on 'open-file', (event, pathToOpen) =>
|
||||
event.preventDefault()
|
||||
@openPath({pathToOpen})
|
||||
|
||||
Reference in New Issue
Block a user