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 f438167 commit 1da5e87Copy full SHA for 1da5e87
lib/php-debug.coffee
@@ -193,6 +193,8 @@ module.exports = PhpDebug =
193
command: 'php-debug:addWatch'
194
shouldDisplay: =>
195
editor = atom.workspace.getActivePaneItem()
196
+ if (!editor || !editor.getSelectedText)
197
+ return false
198
expression = editor?.getSelectedText()
199
if !!expression then return true else return false
200
},
@@ -202,6 +204,7 @@ module.exports = PhpDebug =
202
204
203
205
206
return false if !editor
207
+ return false if !editor.getSelectedBufferRange
208
range = editor.getSelectedBufferRange()
209
path = editor.getPath()
210
line = range.getRows()[0]+1
0 commit comments