Skip to content

Class completion for CSS #84

Open
Open
@icebr9

Description

@icebr9

Describe the bug
Not quite sure if its within the scope of the Svelte plugin but:

If you have:

 <div class="form-field"></div>

And try to do class selector within the style tag like:

<style>
.form-field {
color: red;
}
</style>

Just starting with "." in the <style> gives you gibberish suggestions for autocompletion.

Expected behavior
I've tried the same within normal .html file and behavour there is as such: "form" selector works normally, but for words starting with "." it is completly disabled, same with #.

It would be nice to have "class names intellisense" for svelte components but disabling bad autocompletion is ok as well..

Screenshots
If applicable, add screenshots to help explain your problem.
image

System (please complete the following information):

  • OS: Windows
  • IDE: VSCode
  • Plugin: Svelte Beta

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions