be5invis / vscode-custom-css

Custom CSS Plugin for Visual Studio Code. Based on vscode-icon
MIT License
878 stars 67 forks source link

Implement vscode-styled variables #234

Closed cooperrunyan closed 1 month ago

cooperrunyan commented 1 month ago

Provides some of the functionality mentioned here

Agokir commented 1 month ago

asmjamagdy11

cooperrunyan commented 1 month ago

If it doesn't start with env: or match any of the supported variables, the function returns undefined. Later on, when we are actually replacing values, it calls the resolveVariable to attempt to substitute it, and if it returns undefined (i.e. couldn't determine what the variable means), then it just leaves the whole ${...} alone.