Comments (13)
Doesn't do anything for me either.
Here's my settings.json
:
{
"cssVariables.lookupFiles": [
"src/css/variables/_colors.variables.css"
]
}
from vscode-css-variables.
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.
from vscode-css-variables.
Doesn't work for me either, I'm on mac and using PostCSS (.css) files.
from vscode-css-variables.
Neither for me
from vscode-css-variables.
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))
.
from vscode-css-variables.
@neoglez I've published a new version 2, no need configuration file
from vscode-css-variables.
Sorry if I missed something but it still doesn't work:
from vscode-css-variables.
@AlexisWalravens could you share your variables.css file and also how the folder structure looks like?
from vscode-css-variables.
@AlexisWalravens also try to reload the vscode
from vscode-css-variables.
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.
from vscode-css-variables.
@AlexisWalravens This should be fixed on the latest version. Thanks, Alex!
from vscode-css-variables.
@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
)
from vscode-css-variables.
@AlexisWalravens I think this is a bigger issue postcss vscode plugin not this plugin csstools/postcss-language#2.
from vscode-css-variables.
Related Issues (20)
- Support for Color Functional Notation
- Setting to Disable .js / .ts Autocomplete? HOT 8
- How to debug this extension in vscode? HOT 1
- [Bug] should only show css variables suggestion in style block for vue file HOT 1
- Allow CDN links in lookupFiles list HOT 1
- Ctrl + click for references doesn't work properly when extension is enabled
- [Bug] Accepting autocomplete is problematic in daily use HOT 1
- It is not working in *.styl file
- Preview colors for node_module
- Server crashed 5 times!!! HOT 1
- How to add yarn berry packages into cssVariables.lookupFiles list?
- Any settings to insert CSS variable name without `var()`? HOT 2
- lookupFiles not work with workspace folder HOT 1
- color preview is not rendered HOT 1
- Adds extra hyphens when starting by typing hyphens HOT 2
- Warn if not defined
- No suggestion if try to re-define css variable
- Add ability to add variables that are not in any css files as they'll be generated at run time
- sass预设不同的主题
- [Bug] Extension crashes when getting permission denied
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-css-variables.