We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2c8c18 commit 8f8e022Copy full SHA for 8f8e022
lib/oracle-command.coffee
@@ -48,12 +48,12 @@ class OracleCommand
48
@what()
49
50
getPath: ->
51
- return atom.workspaceView.getActiveView()?.getEditor()?.getPath()
+ atom.workspace.getActiveTextEditor()?.getPath()
52
53
getPosition: ->
54
- editorView = atom.workspaceView.getActiveView()
55
- buffer = editorView?.getEditor()?.getBuffer()
56
- cursor = editorView?.getEditor()?.getLastCursor()
+ editor = atom.workspace.getActiveTextEditor()
+ buffer = editor?.getBuffer()
+ cursor = editor?.getLastCursor()
57
58
startPosition = cursor.getBeginningOfCurrentWordBufferPosition({"includeNonWordCharacters":false})
59
endPosition = cursor.getEndOfCurrentWordBufferPosition({"includeNonWordCharacters":false})
0 commit comments