Skip to content

resolveDebugConfiguration is not passed the correct (closest) workspace folder when they are nested #45580

@DanTup

Description

@DanTup

If you have a WorkspaceFolder inside a WorkspaceFolder, I'm told that getWorkspaceFolder(Uri) will always return the closest one.

As such, it seems reasonable to assume other APIs behave the same. However, if I hit F5 with a file open that exists in multiple workspace roots, the debug configuration provider gets called with the top-level folder and not the closest one.

Eg.:

my_projects                   // WorkspaceFolder
  |- my_flutter_project       // WorkspaceFolder
    |- my_flutter_script.dart
  |- my_dart_project          // WorkspaceFolder
    |- my_dart_script.dart

When I press F5 with my_flutter_script.dart open, I get given the my_projects WorkspaceFolder which means I don't detect that the project is a Flutter project.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions