Delay launching the python interpreter until needed

This commit is contained in:
Ben Jackson 2021-02-25 21:24:40 +00:00
commit f40ac5db23
2 changed files with 13 additions and 23 deletions

View file

@ -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 )