A Pulsar-native IDE provider package for CSS, SCSS, and LESS (based on VSCode’s CSS language server)
This package provides the following services:
This package consumes the following services:
pulsar-ide-css package
Visual Studio Code’s CSS language server in Pulsar. Uses vscode-langservers-extracted.
Features:
- Completion (via the builtin
autocomplete-plus
) - Symbol listing and navigation (via the builtin
symbols-view
) - Diagnostics (via
linter
andlinter-ui-default
) - Highlighting references (put your cursor on a token and see all other usages of that token; used via
pulsar-find-references
) - Ability to do smart project-wide renaming of certain tokens: variable names, animation names, etc. (via
pulsar-refactor
)
Configuration
A recent version of Node should be used. The version of Node inherited from your shell environment will usually suffice; if Pulsar fails to find it, you may specify it in the “Path To Node Binary” configuration field.
The settings under the “Server Settings” section correspond almost exactly to the settings exposed by the language server. When you change a setting in the UI, it applies to CSS, SCSS, and LESS all at once.
If you want to override a setting for just one language, use a scope-specific override in your config.cson
:
".source.css.less":
"pulsar-ide-css":
serverSettings:
lint:
universalSelector: "error"