-
Notifications
You must be signed in to change notification settings - Fork 344
Closed
Labels
in commandsRelates to commands (usually invoked from the command Palette)Relates to commands (usually invoked from the command Palette)is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.An enhancement or improvement that should be listed in release notes but is not a bug fix.
Milestone
Description
Describe the bug
Dart: Add Dependency and Dart: Add Dev Dependency don't find the package if there are spaces after the name of the packet, failing silently (it outputs that the package doesn't exist only in the output panel).
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://pub.dev/packages/awesome_select'
- Double click on the package name (awesome_select). Notice that the browser automatically selects the space after the package name (at least in Edge).
- Use the
Dart: Add Dependencyoption and paste (it will paste with the trailing space) - Package installation fails because it doesn't trim the spaces
Expected behavior
Automatically space trimming (to improve productivity: [F1], [Enter], [Ctrl+V], [Enter], we're done, fast fast)
Also, it would be nice a red toast telling me that package was not found.
There is really a space here >.< It should be on the version side, not on the title, but, nothing we can do to change the source.
Versions (please complete the following information):
- VS Code version: 1.63.2
- Dart extension version: 3.29.0
- Dart/Flutter SDK version: 2.8.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in commandsRelates to commands (usually invoked from the command Palette)Relates to commands (usually invoked from the command Palette)is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.An enhancement or improvement that should be listed in release notes but is not a bug fix.
