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

[ISSUE] FlutterDevices Slow to Open #334

Open
1 task done
praxder opened this issue Feb 27, 2024 · 1 comment
Open
1 task done

[ISSUE] FlutterDevices Slow to Open #334

praxder opened this issue Feb 27, 2024 · 1 comment

Comments

@praxder
Copy link

praxder commented Feb 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When you run :FlutterDevices it takes multiple seconds to open the popup window with all devices

Expected Behavior

The window opens immediately

Steps To Reproduce

Run :FlutterDevices

Environment

- OS: Mac 14.2.1 (23C71)
- Flutter version: 3.16.9
- Is flutter in $PATH: Yes
- neovim version: 0.9.5

Anything else?

I would imagine that this is taking so long as it's querying devices every time the command is run. A potential alternative solution would be to only fetch devices when the dialog is first opened and then cache them. Then, on subsequent opens, show the cache as well as another cell that says "Refresh" that would fetch all devices again.

@Cyril212

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants