mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Log open exception stack to console
This commit is contained in:
committed by
Kevin Sawicki
parent
4497ec9733
commit
ef68fd24d5
@@ -179,15 +179,18 @@ class RootView extends View
|
||||
editSession = activePane.itemForUri(project.relativize(filePath)) if activePane and filePath
|
||||
promise = project.open(filePath, {initialLine}) if not editSession
|
||||
|
||||
Q(editSession ? promise).then (editSession) =>
|
||||
if not activePane
|
||||
activePane = new Pane(editSession)
|
||||
@panes.setRoot(activePane)
|
||||
Q(editSession ? promise)
|
||||
.then (editSession) =>
|
||||
if not activePane
|
||||
activePane = new Pane(editSession)
|
||||
@panes.setRoot(activePane)
|
||||
|
||||
activePane.showItem(editSession)
|
||||
activePane.focus() if changeFocus
|
||||
@trigger "uri-opened"
|
||||
editSession
|
||||
activePane.showItem(editSession)
|
||||
activePane.focus() if changeFocus
|
||||
@trigger "uri-opened"
|
||||
editSession
|
||||
.catch (error) ->
|
||||
console.error(error.stack ? error)
|
||||
|
||||
# Private: Only used in specs
|
||||
openSync: (uri, {changeFocus, initialLine, pane, split}={}) ->
|
||||
|
||||
Reference in New Issue
Block a user