Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow "emulator management" handling to be disabled #3968

Closed
ZaLiTHkA opened this issue May 18, 2022 · 4 comments
Closed

Allow "emulator management" handling to be disabled #3968

ZaLiTHkA opened this issue May 18, 2022 · 4 comments
Labels
in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps is enhancement
Milestone

Comments

@ZaLiTHkA
Copy link

Is your feature request related to a problem? Please describe.

in a way, yes.. I work on numerous different projects, from standard web projects to hybrid-mobile projects, and I've now added Flutter projects to my environment as well.

I've already been using "Android iOS Emulator" for ages to manage my emulators, which is particularly handy since it does not rely on the currently open project being any specific "mobile" project type.

this Flutter extension now adds an additional "launch emulator" option, but only when I have a Flutter project open, resulting in multiple ways to do the "same" thing.

Describe the solution you'd like

I would like to be able to disable the "emulator" management features of this Flutter extension.

Describe alternatives you've considered

I've considered not using the "Android iOS Emulator" extension, but then I lose my ability to launch an emulator from VSCode to develop my Ionic projects.

I've considered not using this "Flutter" extension, but.. well.. I kinda need it.

@DanTup
Copy link
Member

DanTup commented May 18, 2022

this Flutter extension now adds an additional "launch emulator" option, but only when I have a Flutter project open, resulting in multiple ways to do the "same" thing

Can you clarify exactly what you're asking to be disabled? What/where do things show up that you would prefer did not?

@DanTup DanTup added the awaiting info Requires more information from the customer to progress label May 18, 2022
@ZaLiTHkA
Copy link
Author

no problem, I think this easiest way to do that is with screenshots..

when I open the VSCode Command Palette and type emulator, I get the following options with an Ionic Framework project open:

image

but then I get the following options with a Flutter project open:

image


I would like to remove the "Flutter: Launch Emulator" action, simply because inconsistency like this in my IDE interactions cause headaches.

@DanTup
Copy link
Member

DanTup commented May 18, 2022

Got it, thanks!

There's an existing setting dart.flutterShowEmulators that controls emulator visibility for remote workspaces. It currently accepts "local" (only show emulators for local workspaces) and "always" (show emulators in all workspaces). I'm adding a new option "never" which will hide them always (the same as if it's set to "local" and you're in a remote workspace).

This will both hide the command, and also hide all offline emulators from the device picker (I don't think it makes sense to control these individually, you either have them both or neither).

Screenshot 2022-05-18 at 14 59 07

Screenshot 2022-05-18 at 14 59 30

@DanTup DanTup closed this as completed in 5233a60 May 18, 2022
@DanTup DanTup added in flutter Relates to running Flutter apps in commands Relates to commands (usually invoked from the command Palette) and removed awaiting info Requires more information from the customer to progress labels May 18, 2022
@DanTup DanTup added this to the v3.42.0 milestone May 18, 2022
@ZaLiTHkA
Copy link
Author

that's awesome, thank you @DanTup. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in commands Relates to commands (usually invoked from the command Palette) in flutter Relates to running Flutter apps is enhancement
Projects
None yet
Development

No branches or pull requests

2 participants