DanielGavin / ols

Language server for Odin
MIT License
417 stars 62 forks source link

Bitset snippets for autocompleting the `in` operator #274

Open flysand7 opened 9 months ago

flysand7 commented 9 months ago

Realised that there's no way for ols to solve the issue of .Value in some_bitset issue, where ols can not possibly auto-complete .Value before you typed either the name of the bitset or the value. I don't remember every single enum constant of every single bitset, so it would be nice to auto-complete bitset constants.

I want to ask whether it would be possible to provide code snippets for this situation:

image

Where it would show you .Apple and .Orange for your bitset and they would expand to e.g. .Apple in set.