Skip to content

Detect projects for open files even if they're outside of the projectSearchDepth limit #3856

@Jordan-Nelson

Description

@Jordan-Nelson

Describe the bug
When working in a mono repo that has packages that support different platforms (Ex: package A supports iOS and Android and package B support iOS, Android, Web) the incorrect device options are shown. When package_b/example/main.dart is opened, the device drop down shows "enable web for this project" even though web is enabled for the project. Running flutter run -d chrome from the same dir works just fine.

To Reproduce
Steps to reproduce the behavior:

  1. Create a mono repo with multiple packages with varying platform support
  2. Observe what device options show in the devices drop down

Expected behavior
The available devices should reflect what devices are available for the currently opened file.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • VS Code version: 1.64.2
  • Dart extension version: v3.36.0
  • Dart/Flutter SDK version: flutter 2.10.03

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions