Properly responsd to server reverse-request

This commit is contained in:
Ben Jackson 2018-12-19 00:44:33 +00:00
commit 87db1e3478
3 changed files with 37 additions and 3 deletions

View file

@ -488,7 +488,15 @@ class DebugSession( object ):
def OnRequest_runInTerminal( self, message ):
params = message[ 'arguments' ]
self._codeView.LaunchTerminal( params )
buffer_number = self._codeView.LaunchTerminal( params )
response = {
'processId': vim.eval( 'job_info( term_getjob( {} ) )'
'.process'.format( buffer_number ) )
}
self._connection.DoResponse( message, None, response )
def Clear( self ):
self._codeView.Clear()