Support completion for console and watches.
Add omnifunc for prompt buffers
This synchronous completion can be used with any completion system
including built-in CTRL-X CTRL-O.
The filetype of the prompt buffers is set to VimspectorPrompt so that it
can be identified by completion systems. For example, this works well
with YCM:
let g:ycm_semantic_triggers = {
\ 'VimspectorPrompt': [ '.', '->', ':', '<' ]
\ }
This commit is contained in:
parent
e81be848a1
commit
733843a6d4
5 changed files with 113 additions and 8 deletions
|
|
@ -554,8 +554,7 @@ class DebugSession( object ):
|
|||
# TODO:
|
||||
# - start / length
|
||||
# - sortText
|
||||
return [ i.get( 'text' ) or i[ 'label' ]
|
||||
for i in response[ 'body' ][ 'targets' ] ]
|
||||
return response[ 'body' ][ 'targets' ]
|
||||
|
||||
|
||||
def _SetUpUI( self ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue