zignd / HTML-CSS-Class-Completion

:chocolate_bar: Visual Studio Code extension that provides CSS class name completion for the HTML class attribute based on the CSS files in your workspace
https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion
MIT License
250 stars 83 forks source link

Extension not working on basic HTML + CSS file project (includes reproduction steps) #367

Open grantmcconnaughey opened 2 years ago

grantmcconnaughey commented 2 years ago

Unfortunately, this extension is not working for me even on a basic project with a single HTML and CSS file. I've re-cached CSS class names after adding the test.css file. I also disabled all extensions for my workspace to confirm nothing else was clashing with this extension, and that also did not work.

Are there logs where I can debug what is going on (if something is crashing, for instance)?

My index.html file is this:

<html>
    <head>
        <link href="test.css" rel="stylesheet">
    </head>
    <body>
        <h1 class="">Hello world</h1>
    </body>
</html>

And my test.css file is this:

.test {
    background-color: red;
}

Here is a screenshot of the suggestions I'm receiving:

image

My only workspace settings are to disable the "Show Words" suggestions in the editor:

{
    "editor.suggest.showWords": false
}

More details