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.
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
F5with 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.:
When I press
F5withmy_flutter_script.dartopen, I get given themy_projectsWorkspaceFolder which means I don't detect that the project is a Flutter project.