benvp / vscode-hex-pm-intellisense

Adds IntelliSense for hex.pm dependencies in your Elixir project Mixfile.
MIT License
19 stars 4 forks source link

Enhancement Request: Prepend ~> to versions #15

Open TheFirstAvenger opened 2 years ago

TheFirstAvenger commented 2 years ago

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!

benvp commented 2 years ago

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:

@TheFirstAvenger What's your opinion?

TheFirstAvenger commented 2 years ago

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.