Fix workspace root when no vimspector conf - use dir of current file

This commit is contained in:
Ben Jackson 2020-02-16 19:59:31 +00:00
commit 68a45b5771
3 changed files with 33 additions and 140 deletions

View file

@ -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' )