Go back to launching after initialize as this is required by some servers. The spec is a little unclear on what the correct behaviour is, but this seems to work with microsoft's own debug adapters

This commit is contained in:
Ben Jackson 2019-02-02 10:26:17 +00:00
commit 728cd2b9c3

View file

@ -459,7 +459,7 @@ class DebugSession( object ):
def _Initialise( self ): def _Initialise( self ):
adapter_config = self._adapter adapter_config = self._adapter
self._connection.DoRequest( None, { self._connection.DoRequest( lambda msg: self._Launch(), {
'command': 'initialize', 'command': 'initialize',
'arguments': { 'arguments': {
'adapterID': adapter_config.get( 'name', 'adapter' ), 'adapterID': adapter_config.get( 'name', 'adapter' ),
@ -519,7 +519,7 @@ class DebugSession( object ):
def OnEvent_initialized( self, message ): def OnEvent_initialized( self, message ):
self._SendBreakpoints() self._SendBreakpoints()
self._connection.DoRequest( self._connection.DoRequest(
lambda msg: self._Launch(), None,
{ {
'command': 'configurationDone', 'command': 'configurationDone',
} }