We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5241435 commit a68d561Copy full SHA for a68d561
1 file changed
lib/python-debugger-view.coffee
@@ -111,9 +111,12 @@ class PythonDebuggerView extends View
111
112
if lineNumber && fileName
113
lineNumber = parseInt(lineNumber)
114
- options = {initialLine: lineNumber-1, initialColumn:0}
115
- atom.workspace.open(fileName, options) if fs.existsSync(fileName)
116
- # TODO: add decoration to current line?
+ atom.workspace.open(fileName).then (editor) ->
+ position = Point(lineNumber - 1, 0)
+ editor.setCursorBufferPosition(position)
117
+ editor.unfoldBufferRow(lineNumber)
118
+ editor.scrollToBufferPosition(position)
119
+ # TODO: add decoration to current line?
120
121
@addOutput(data_str.trim())
122
0 commit comments