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:
parent
1905556edd
commit
728cd2b9c3
1 changed files with 2 additions and 2 deletions
|
|
@ -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',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue