Delay launching the python interpreter until needed
This commit is contained in:
parent
11edcddd9c
commit
f40ac5db23
2 changed files with 13 additions and 23 deletions
|
|
@ -628,6 +628,18 @@ class DebugSession( object ):
|
|||
return response[ 'body' ][ 'targets' ]
|
||||
|
||||
|
||||
@IfConnected( otherwise=[] )
|
||||
def GetCommandLineCompletions( self, ArgLead, prev_non_keyword_char ):
|
||||
items = []
|
||||
for candidate in self.GetCompletionsSync( ArgLead, prev_non_keyword_char ):
|
||||
label = candidate.get( 'text', candidate[ 'label' ] )
|
||||
start = prev_non_keyword_char - 1
|
||||
if 'start' in candidate and 'length' in candidate:
|
||||
start = candidate[ 'start' ]
|
||||
items.append( ArgLead[ 0 : start ] + label )
|
||||
|
||||
return items
|
||||
|
||||
def RefreshSigns( self, file_name ):
|
||||
if self._connection:
|
||||
self._codeView.Refresh( file_name )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue