6.3.1 • Published 10 months ago

vscode-css-languageservice v6.3.1

Weekly downloads
64,624
License
MIT
Repository
github
Last release
10 months ago

vscode-css-languageservice

Language services for CSS, LESS and SCSS

npm Package NPM Downloads Build Status License: MIT

Why?

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.

Installation

npm install --save vscode-css-languageservice

API

For the complete API see cssLanguageService.ts and cssLanguageTypes.ts

Development

  • clone this repo, run `npm install
  • npm test to compile and run tests

How can I run and debug the service?

  • open the folder in VSCode.
  • set breakpoints, e.g. in cssCompletion.ts
  • run the Unit tests from the run viewlet and wait until a breakpoint is hit: image

How can I run and debug the service inside an instance of VSCode?

  • run VSCode out of sources setup as described here: https://github.com/Microsoft/vscode/wiki/How-to-Contribute
  • 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 image
  • set breakpoints, e.g. in cssCompletion.ts
  • in the instance run from sources, invoke code completion in the .css file

Note: All CSS entities (properties, at-rules, etc) are sourced from https://github.com/microsoft/vscode-custom-data/tree/master/web-data and transpiled here. For adding new property or fixing existing properties' completion/hover description, please open PR there).

License

(MIT License)

Copyright 2016, 20 Microsoft

With the exceptions of build/mdn-documentation.js, which is built upon content from Mozilla Developer Network and distributed under CC BY-SA 2.5.

@nevmn/vscode-css-languageserver@nevmn/vscode-html-languageserver@infinitebrahmanuniverse/nolb-vscmaster-css-language-server@everything-registry/sub-chunk-3069svelte-language-servervue-language-servervscode-vue-languageservicevtc-vlsvolar-service-cssvscode-smarty-langserver-extractedvscode-langservers-extractedvscode-html-languageserver-binvscode-css-languageserver-binvscode-css-ls-binvscode-html-ls-bin@csb-lang-server/csslaravel-bladestylable-intelligence-servicetypescript-embedded-css-plugintypescript-styled-plugin@bmewburn/vscode-html-languageserver@devpodio/vue-language-serverwapitis-analyzer@glean-dev/svelte-language-server@liquivelte/liquivelte-language-server@marko/language-server@master/css-language-service@native-twin/language-server@native-twin/language-service@native-twin/ts-plugin@enhancedjs/typescript-css-plugin@mo36924/react-css@kocan-plugins/css@savetheclocktower/css-languageserver@small-tech/nodekit-language-servermota-cssnuclidesanny-lsp-vimpika-svelte-language-serverpostcss-language-serverhamber-language-serverliquid-language-serverlit-analyzer@vuedx/vue-languageservice@workbench-stack/default-languages-server@workbench-stack/ext-default-languages-server@universal-labs/native-twin-ts-plugin@universal-labs/ts-styled-plugin-tw@uxls/services@vue/language-service@volar-plugins/css@zed-industries/vscode-langservers-extracted@styled/typescript-styled-plugin@stylable/language-serviceagile-cssacode-lspant-editorcss-langservercss-language-serverbi-ace-editor@shopify/theme-language-server-common
6.3.1

10 months ago

6.3.0

12 months ago

6.2.13

1 year ago

6.2.14

1 year ago

6.2.12

1 year ago

6.2.11

2 years ago

6.2.10

2 years ago

6.2.7

2 years ago

6.2.9

2 years ago

6.2.8

2 years ago

6.2.5

2 years ago

6.2.4

2 years ago

6.2.6

2 years ago

6.2.3

2 years ago

6.2.2

2 years ago

6.2.1

3 years ago

6.1.0

3 years ago

6.1.1

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.4.2

3 years ago

5.3.0

3 years ago

5.4.1

3 years ago

5.2.0

3 years ago

5.1.13

3 years ago

5.1.12

3 years ago

5.1.11

3 years ago

5.1.10

3 years ago

5.1.9

4 years ago

5.1.8

4 years ago

5.1.7

4 years ago

5.1.6

4 years ago

5.1.5

4 years ago

5.1.4

4 years ago

5.1.3

4 years ago

5.1.2

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.3

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.4.0

5 years ago

4.3.6

5 years ago

4.3.5

5 years ago

4.3.4

5 years ago

4.3.3

5 years ago

4.3.2

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.3.0-next.3

5 years ago

4.3.0-next.2

5 years ago

4.3.0-next.1

5 years ago

4.3.0-next.0

5 years ago

4.2.0

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.3-next.27

5 years ago

4.0.3-next.26

5 years ago

4.0.3-next.25

6 years ago

4.0.3-next.24

6 years ago

4.0.3-next.23

6 years ago

4.0.3-next.22

6 years ago

4.0.3-next.21

6 years ago

4.0.3-next.20

6 years ago

4.0.3-next.19

6 years ago

4.0.3-next.18

6 years ago

4.0.3-next.17

6 years ago

4.0.3-next.15

6 years ago

4.0.3-next.14

6 years ago

4.0.3-next.13

6 years ago

4.0.3-next.12

6 years ago

4.0.3-next.11

6 years ago

4.0.3-next.10

6 years ago

4.0.3-next.9

6 years ago

4.0.3-next.8

6 years ago

4.0.3-next.7

6 years ago

4.0.3-next.6

6 years ago

4.0.3-next.5

6 years ago

4.0.3-next.4

6 years ago

4.0.3-next.3

6 years ago

4.0.3-next.2

6 years ago

4.0.3-next.1

6 years ago

4.0.3-next.0

6 years ago

4.0.2

6 years ago

4.0.2-next.4

6 years ago

4.0.2-next.3

6 years ago

4.0.2-next.2

6 years ago

4.0.2-next.1

6 years ago

4.0.1

6 years ago

4.0.0-next.5

6 years ago

4.0.0-next.4

6 years ago

4.0.0-next.3

6 years ago

4.0.0-next.2

6 years ago

4.0.0-next.1

6 years ago

4.0.0-next.0

6 years ago

3.0.13

6 years ago

3.0.13-next.12

6 years ago

3.0.13-next.11

6 years ago

3.0.13-next.10

6 years ago

3.0.13-next.9

6 years ago

3.0.13-next.8

6 years ago

3.0.13-next.7

6 years ago

3.0.13-next.6

6 years ago

3.0.13-next.5

6 years ago

3.0.13-next.4

6 years ago

3.0.13-next.3

7 years ago

3.0.13-next.2

7 years ago

3.0.13-next.1

7 years ago

3.0.12

7 years ago

3.0.12-next.2

7 years ago

3.0.12-next.1

7 years ago

3.0.11

7 years ago

3.0.11-next.2

7 years ago

3.0.11-next.1

7 years ago

3.0.10

7 years ago

3.0.10-next.3

7 years ago

3.0.10-next.2

7 years ago

3.0.10-next.1

7 years ago

3.0.9

7 years ago

3.0.9-next.20

7 years ago

3.0.9-next.19

7 years ago

3.0.9-next.18

7 years ago

3.0.9-next.17

7 years ago

3.0.9-next.16

7 years ago

3.0.9-next.15

7 years ago

3.0.9-next.14

7 years ago

3.0.9-next.13

7 years ago

3.0.9-next.12

7 years ago

3.0.9-next.11

7 years ago

3.0.9-next.10

7 years ago

3.0.9-next.9

7 years ago

3.0.9-next.7

7 years ago

3.0.9-next.6

7 years ago

3.0.9-next.5

7 years ago

3.0.9-next.4

7 years ago

3.0.9-next.3

7 years ago

3.0.9-next.2

7 years ago

3.0.9-next.1

7 years ago

3.0.8

7 years ago

3.0.7

7 years ago

3.0.6

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.1.11

8 years ago

2.1.10

8 years ago

2.1.9

8 years ago

2.1.8

8 years ago

2.1.7

8 years ago

2.1.6

8 years ago

2.1.5

8 years ago

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

2.0.0-next.9

8 years ago

2.0.0-next.8

8 years ago

2.0.0-next.7

8 years ago

2.0.0-next.6

9 years ago

2.0.0-next.5

9 years ago

2.0.0-next.4

9 years ago

2.0.0-next.3

9 years ago

2.0.0-next.2

9 years ago

2.0.0-next.1

9 years ago

1.1.0

9 years ago

1.0.9-next.1

9 years ago

1.0.8

9 years ago

1.0.7-next.3

9 years ago

1.0.7-next.2

9 years ago

1.0.7-next.1

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.5-next.2

9 years ago

1.0.5-next.1

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago