language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Suggestion: CSS @import statements intellisense

Open PindaPixel opened this issue 9 months ago • 0 comments

Right now I'm very satisfied with using CSS modules in single file components, but the intellisense doesn't seem to extend to imported modules:

<template>
    <div :class="$style['my-class']"></div>
</template>
<style module>
/* imagine this contains .my-class */
@import url("./styles/animation.css"); 

.some-class {
...
}
</style>

It works correctly and the language tools don't scream because $style is Record<string, string> & { 'some-class': string }, but it would be nice if the $style type takes static imports into consideration.

PindaPixel avatar Nov 08 '23 16:11 PindaPixel