Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plug-ins don't work. #8

Closed
kiharaneko opened this issue Jul 26, 2021 · 13 comments
Closed

Plug-ins don't work. #8

kiharaneko opened this issue Jul 26, 2021 · 13 comments

Comments

@kiharaneko
Copy link

I installed a plugin and it doesn't work.
I would like to know how to use this plugin in detail.

@franktopel
Copy link

franktopel commented Jul 27, 2021

Doesn't do anything for me either.

Here's my settings.json:

{
    "cssVariables.lookupFiles": [
        "src/css/variables/_colors.variables.css"
    ]
}

image

@literalpie
Copy link

The extension works fine for me. I have a similar settings to what @franktopel has. If it makes a difference, I'm on a Mac and using scss files.

@AlexisWalravens
Copy link

Doesn't work for me either, I'm on mac and using PostCSS (.css) files.

@neoglez
Copy link

neoglez commented Dec 17, 2021

Neither for me

@neoglez
Copy link

neoglez commented Dec 17, 2021

Neither for me

Well, it does work. By looking into the code, I was able to find the problem:
In setting.json you have to correctly configure the json object:

{
    "cssVariables": {
      "lookupFiles": [
        "my/public/or/whatever/variables.css",
      ]
    }
}

Be really sure that your path is correct (my path was not).
Now, regarding the completion, for the most part works well. However, if you already typed var(--, the plug in completes with var(--, therefore, inserting var twicevar(var(--some-css-variable)).

@vunguyentuan
Copy link
Owner

@neoglez I've published a new version 2, no need configuration file

@AlexisWalravens
Copy link

Sorry if I missed something but it still doesn't work:
Enregistrement de l’écran 2021-12-20 à 10 42 59

@vunguyentuan
Copy link
Owner

@AlexisWalravens could you share your variables.css file and also how the folder structure looks like?

@vunguyentuan vunguyentuan reopened this Dec 22, 2021
@vunguyentuan
Copy link
Owner

@AlexisWalravens also try to reload the vscode

@AlexisWalravens
Copy link

AlexisWalravens commented Dec 22, 2021

Of course, here it is: https://github.com/AlexisWalravens/postcss-boilerplate

Edit: It works actually when the file is set to CSS but if it's set to PostCSS it doesn't.

Doesn't work.
image
Works.
image

@vunguyentuan
Copy link
Owner

@AlexisWalravens This should be fixed on the latest version. Thanks, Alex!

@AlexisWalravens
Copy link

AlexisWalravens commented Dec 23, 2021

@vunguyentuan Thanks for you plugin and your reactivity.

Sadly when setting the file to PostCSS it still doesn't work.
I reloaded and even restarted VS Code.
(I checked I have the latest version v2.1.3 - Last updated 23/12/2021, 02:19:17)

@vunguyentuan
Copy link
Owner

@AlexisWalravens I think this is a bigger issue postcss vscode plugin not this plugin csstools/postcss-language#2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants