SublimeText / Sass

Sass and SCSS syntax for Sublime Text
https://packagecontrol.io/packages/Sass
MIT License
50 stars 8 forks source link

Remove completion restrictions #108

Closed deathaxe closed 4 months ago

deathaxe commented 4 months ago

Resolves #107

Suggest properties also within meta.selector as this is the most likely scope in front of a nested selector, if a property is not yet terminated by semi-colon.

braver commented 4 months ago

I wonder how annoying this would be, to get property suggestions in every single selector you're trying to write? I'll play with it a bit.

braver commented 4 months ago

You do get more useful suggestions this way. You can now just type bb hit tab, and have it expand to border-bottom automagically. So this is very neat.

On the other hand does feel a bit weird in situations where you're obviously not trying to type a property:

Screenshot 2024-05-07 at 15 31 45
deathaxe commented 4 months ago

As there's no way to distinguish incomplete property assignments from selectors, there's no other way. With this change behaviour would at least be equal to LSP-css and VSCode.

braver commented 4 months ago

I agree, it’s a clear overall improvement. And it’s not like it’s masking any useful suggestions for selectors, because we don’t actually have any of those.