Fix runInTerminal when the cwd supplied is (heinously) empty

This commit is contained in:
Ben Jackson 2019-02-12 09:05:47 +00:00
commit 215af1316a

View file

@ -614,8 +614,10 @@ class DebugSession( object ):
def OnRequest_runInTerminal( self, message ):
params = message[ 'arguments' ]
if 'cwd' not in params:
if not params.get( 'cwd' ) :
params[ 'cwd' ] = self._workspace_root
self._logger.debug( 'Defaulting working directory to %s',
params[ 'cwd' ] )
buffer_number = self._codeView.LaunchTerminal( params )