Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove completion restrictions #108

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

deathaxe
Copy link
Member

@deathaxe deathaxe commented May 6, 2024

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.

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
Copy link
Member

braver commented May 7, 2024

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
Copy link
Member

braver commented May 7, 2024

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
Copy link
Member Author

deathaxe commented May 7, 2024

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
Copy link
Member

braver commented May 7, 2024 via email

@deathaxe deathaxe merged commit e0ce1aa into master May 7, 2024
@deathaxe deathaxe deleted the fix/property-completions branch May 7, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete stops working before a nested selector
2 participants