microsoft / typescript-styled-plugin

TypeScript server plugin that adds intellisense to styled component css strings
MIT License
839 stars 58 forks source link

@media has no (emmet) completions #141

Closed jasonwilliams closed 2 years ago

jasonwilliams commented 3 years ago

Raised from: https://github.com/styled-components/vscode-styled-components/issues/302

For some reason @media doesn't trigger any completions. I've searched through all the completions the CSS language server returns and @media doesn't appear to be in there so it looks like an upstream issue.

Here I type "@m" and get no completions for @media, in the debugger i search through them all but there aren't any. image

However in the CSS file i see the emmet auto complete working image

I'm assuming the CSS language server doesn't offer any auto complete for @media tokens (is this the case @aeschli). However i would expect the emmet to kick in here.

jasonwilliams commented 3 years ago

Updated emmet in https://github.com/microsoft/typescript-styled-plugin/pull/142

jasonwilliams commented 3 years ago

In the latest update I can see emmet’s “@media” completionItem in the list but it doesn’t make its way to the UI which is a shame. I wonder if this is to do with the CSS/SCSS services sending every completion all the time?

issue raised here: https://github.com/microsoft/vscode-css-languageservice/issues/246