Delay configurationDone until we have received _responses_ to the breakpoint requests, as go server seems to require this
This commit is contained in:
parent
adfce8d30e
commit
b6a2e3df9e
2 changed files with 32 additions and 15 deletions
|
|
@ -683,18 +683,19 @@ class DebugSession( object ):
|
|||
|
||||
|
||||
def OnEvent_initialized( self, message ):
|
||||
self._codeView.ClearBreakpoints()
|
||||
self._breakpoints.SendBreakpoints()
|
||||
def onBreakpointsDone():
|
||||
if self._server_capabilities.get( 'supportsConfigurationDoneRequest' ):
|
||||
self._connection.DoRequest(
|
||||
lambda msg: self._OnInitializeComplete(),
|
||||
{
|
||||
'command': 'configurationDone',
|
||||
}
|
||||
)
|
||||
else:
|
||||
self._OnInitializeComplete()
|
||||
|
||||
if self._server_capabilities.get( 'supportsConfigurationDoneRequest' ):
|
||||
self._connection.DoRequest(
|
||||
lambda msg: self._OnInitializeComplete(),
|
||||
{
|
||||
'command': 'configurationDone',
|
||||
}
|
||||
)
|
||||
else:
|
||||
self._OnInitializeComplete()
|
||||
self._codeView.ClearBreakpoints()
|
||||
self._breakpoints.SendBreakpoints( onBreakpointsDone )
|
||||
|
||||
def OnEvent_thread( self, message ):
|
||||
self._stackTraceView.OnThreadEvent( message[ 'body' ] )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue