Fix workspace root when no vimspector conf - use dir of current file
This commit is contained in:
parent
267f202dad
commit
68a45b5771
3 changed files with 33 additions and 140 deletions
|
|
@ -128,7 +128,10 @@ class DebugSession( object ):
|
|||
if not configuration_name or configuration_name not in configurations:
|
||||
return
|
||||
|
||||
self._workspace_root = os.path.dirname( launch_config_file )
|
||||
if launch_config_file:
|
||||
self._workspace_root = os.path.dirname( launch_config_file )
|
||||
else:
|
||||
self._workspace_root = os.path.dirname( current_file )
|
||||
|
||||
configuration = configurations[ configuration_name ]
|
||||
adapter = configuration.get( 'adapter' )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue