The vscode-css-languageservice contains the language smarts behind the CSS, LESS and SCSS editing experience of Visual Studio Code
and the Monaco editor.
doValidation analyses an input string and returns syntax and lint errors.
doComplete provides completion proposals for a given location.
doHover provides a hover text for a given location.
findDefinition finds the definition of the symbol at the given location.
findReferences finds all references to the symbol at the given location.
findDocumentHighlights finds all symbols connected to the given location.
findDocumentSymbols provides all symbols in the given document
doCodeActions evaluates code actions for the given location, typically to fix a problem.
findDocumentColors evaluates all color symbols in the given document
doRename renames all symbols connected to the given location.
prepareRename the range of the node that can be renamed
getFoldingRanges returns folding ranges in the given document.
run npm link in the folder of vscode-css-languageservice
use npm link vscode-css-languageservice in vscode/extensions/css-language-features/server to run VSCode with the latest changes from vscode-css-languageservice
run VSCode out of source (vscode/scripts/code.sh|bat) and open a .css file
in VSCode window that is open on the vscode-css-languageservice sources, run command Debug: Attach to Node process and pick the code-oss process with the css-language-features path
set breakpoints, e.g. in cssCompletion.ts
in the instance run from sources, invoke code completion in the .css file