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

Can't run the command if the pubspec.yaml buffer is not active #2

Open
nank1ro opened this issue Jan 4, 2022 · 4 comments
Open

Can't run the command if the pubspec.yaml buffer is not active #2

nank1ro opened this issue Jan 4, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@nank1ro
Copy link

nank1ro commented Jan 4, 2022

Hi,

First of all thank you so much for this plugin.

Would it be possible for the command to be visible everywhere in the Dart/Flutter project and not only when the pubspec.yaml buffer is the active one?

@f-person
Copy link
Owner

f-person commented Jan 4, 2022

Hi! Thank you for kind words!

Yes, I think it is possible. But pubspec.yaml will be opened in this scenario. Is that okay for you?

@nank1ro
Copy link
Author

nank1ro commented Jan 4, 2022

Is there no way to avoid opening the pubspec.yaml file?

I’m coming from the Pubspec Assist extension of VSCode, and from the Command Palette I can run Pubspec assist: Add/Update dependencies without opening the pubspec file.

Maybe it is possible to run these commands:
dart pub add packageName (for dart)
flutter pub add packageName (for flutter)

silently? In fact they already manipulate the pubspec file under the hood

@f-person
Copy link
Owner

f-person commented Jan 4, 2022

This plugin is not currently using the mentioned commands (not sure if they were available when I created the plugin) but it's possible to switch to them, yes. I will take a look at this. I think opening pubspec.yaml can be configurable

@nank1ro
Copy link
Author

nank1ro commented Jan 4, 2022

Thank you so much! 👍🏼
If I can help with anything, please ask

@f-person f-person added the enhancement New feature or request label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants