vscode-hex-pm-intellisense icon indicating copy to clipboard operation
vscode-hex-pm-intellisense copied to clipboard

Enhancement Request: Prepend ~> to versions

Open TheFirstAvenger opened this issue 3 years ago • 2 comments

The vast majority of the deps in the ecosystem are specified with the prefix ~>, would it be possible to change the values in the dropdown to also follow this paradigm?

p.s. thank you for this extension, it has saved me a ton of time!

TheFirstAvenger avatar Jan 07 '22 20:01 TheFirstAvenger

Great idea. We could do something like the npm extension has:

CleanShot 2022-01-13 at 08 58 53@2x

But the npm extension shows the latest package version only. This extension however shows all available versions, so adding three suggestion for every version would make the list quite big. We could do one of the two:

  • Add a prefixed suggestion only for the latest version like ~> 2.1.0
  • Change all suggestions to be like ~> 2.1.0.

@TheFirstAvenger What's your opinion?

benvp avatar Jan 13 '22 08:01 benvp

My vote would be for all "~> 1.2.3" but I think it depends on if my experience of always using "~> 1.2.3" is the most common case. It could be tied to a setting where you pick all/latest/none for each of the variations.

TheFirstAvenger avatar Jan 13 '22 15:01 TheFirstAvenger