zed icon indicating copy to clipboard operation
zed copied to clipboard

Add support for CSS Variables autocomplete

Open widersky opened this issue 2 years ago • 7 comments

Check for existing issues

  • [X] Completed

Describe the feature

As I wrote in the title. CSS variables have been around for a long time and it would be great to have support right in the box. VSCode has an extension that provides the right functionality and works quite well.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

widersky avatar Jan 06 '24 12:01 widersky

I don't mean to discredit this issue, but I believe that CSS variable autocomplete already exists in Zed. For me, with or without typing --, suggestions pop up.

Screen Shot 1 Screen Shot 2


Zed: v0.118.1 (Zed) OS: macOS 12.6.6 Memory: 16 GiB Architecture: x86_64

CurbaiCode avatar Jan 16 '24 15:01 CurbaiCode

@CurbaiCode Of course, it works if you refer to a variable in the same file, but if you do it in another file, it no longer works.

widersky avatar Jan 16 '24 17:01 widersky

Ohh, OK. Thank you for the clarification.

CurbaiCode avatar Jan 16 '24 17:01 CurbaiCode

I'm going to go ahead and close this as stale. If you have a specific issue with autocomplete not being provided by the css language server, please open a clean issue with an explicit minimal set of steps to reproduce so it can be investigated why autocomplete isn't working (upstream language server issue / zed lsp configuration issue, etc).

notpeter avatar Jan 28 '25 17:01 notpeter

+1 for this feature please

pcoch avatar Aug 24 '25 04:08 pcoch

I created a discussion regarding this feature request: #39618

luksak avatar Oct 06 '25 15:10 luksak

Hey I have implemented this feature via the extension. https://github.com/vunguyentuan/vscode-css-variables/tree/master. Check it out here https://github.com/zed-industries/extensions/pull/3881

lmn451 avatar Nov 15 '25 13:11 lmn451