Fix runInTerminal when the cwd supplied is (heinously) empty
This commit is contained in:
parent
0b40c3e04a
commit
215af1316a
1 changed files with 3 additions and 1 deletions
|
|
@ -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 )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue