Skip to content

Commit 919d7ce

Browse files
committed
Use atom.workspace.open
1 parent 7dac032 commit 919d7ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/go-oracle-view.coffee

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ class GoOracleView extends View
3030
line = parseInt(matches[2]) - 1
3131
col = parseInt(matches[3]) - 1
3232

33-
newEditor = atom.workspaceView.openSync(file)
34-
newEditor.setCursorBufferPosition([line, col])
35-
33+
newEditor = atom.workspace.open(file).then (newEditor) ->
34+
newEditor.setCursorBufferPosition([line, col])
3635

3736
@oracle = new OracleCommand()
3837
@oracle.on 'oracle-complete', (command, data) =>

0 commit comments

Comments
 (0)