5.3.1 • Published 10 months ago

vscode-html-languageservice v5.3.1

Weekly downloads
21,879
License
MIT
Repository
github
Last release
10 months ago

vscode-html-languageservice

HTML language service extracted from VSCode to be reused, e.g in the Monaco editor.

npm Package NPM Downloads Build Status License: MIT

Why?

The vscode-html-languageservice contains the language smarts behind the HTML editing experience of Visual Studio Code and the Monaco editor.

  • doComplete / doComplete2 (async) provide completion proposals for a given location.
  • setCompletionParticipants allows participant to provide suggestions for specific tokens.
  • doHover provides hover information at a given location.

  • format formats the code at the given range.

  • findDocumentLinks finds all links in the document.
  • findDocumentSymbols finds all the symbols in the document.
  • getFoldingRanges return folding ranges for the given document.
  • getSelectionRanges return the selection ranges for the given document. ...

    For the complete API see htmlLanguageService.ts and htmlLanguageTypes.ts

Installation

npm install --save vscode-html-languageservice

Development

  • clone this repo, run `npm i
  • 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 htmlCompletion.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
  • link the folder of the vscode-html-languageservice repo to vscode/extensions/html-language-features/server to run VSCode with the latest changes from that folder:
    • cd vscode-html-languageservice, npm link
    • cd vscode/extensions/html-language-features/server, npm link vscode-html-languageservice
  • run VSCode out of source (vscode/scripts/code.sh|bat) and open a .html file
  • in VSCode window that is open on the vscode-html-languageservice sources, run command Debug: Attach to Node process and pick the code-oss process with the html-language-features path image
  • set breakpoints, e.g. in htmlCompletion.ts
  • in the instance run from sources, invoke code completion in the .html file

License

(MIT License)

Copyright 2016-2023, Microsoft

src/languageFacts/data/webCustomData.ts (shipped as lib/esm/languageFacts/data/webCustomData.ts and lib/umd/languageFacts/data/webCustomData.ts) are built upon content from Mozilla Developer Network and distributed under CC BY-SA 2.5.

xrwebvs@nevmn/vscode-html-languageserver@infinitebrahmanuniverse/nolb-vsc@everything-registry/sub-chunk-3069svelte-language-servervue-language-service-with-kebabvscode-vue-languageservicevolar-service-htmlvolar-service-pugvolar-service-veturvscode-smarty-langserver-extractedvscode-langservers-extractedvscode-html-languageserver-binvscode-html-ls-binlaravel-bladestimulus-language-servertypescript-hbs-plugintypescript-mjml-plugintypescript-lit-events-and-attributestypescript-lit-html-pluginturbo-language-server@analogjs/language-server@angular/language-server@astrojs/language-server@bmewburn/vscode-html-languageserverwapitis-analyzerts-html-plugin@frlow/brine@glean-dev/svelte-language-server@kvrjs/language-server@liquivelte/liquivelte-language-server@microsoft/fast-tooling@evmts/language-server@evmts/lsp@enhancedjs/typescript-html-plugin@kocan-plugins/emmet@kocan-plugins/html@kocan-plugins/pug@kocan/kdu-language-service@kocan/language-server@kocan/language-service@salesforce/lwc-language-server@small-tech/nodekit-language-server@snakeskin/languagepugjs-angular-language-serverpugjs-angular-templatepika-svelte-language-serverhtml-biscuitshamber-language-serverlit-analyzer@vuedx/vue-languageservice@workbench-stack/default-languages-server@workbench-stack/ext-default-languages-server@tevm/lsp@uxls/services@vue/language-service@volar-plugins/html@volar-plugins/pug@volar-plugins/vetur@volar/vue-language-service@yaegassy/coc-laravel@zed-industries/vscode-langservers-extractedacode-lspastro-languageserverant-editordesign-to-codebi-ace-editor
5.3.1

10 months ago

5.3.0

12 months ago

5.2.0

1 year ago

5.1.2

1 year ago

5.1.1

2 years ago

5.0.7

2 years ago

5.0.6

2 years ago

5.1.0

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.2.5

3 years ago

4.2.4

3 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

4 years ago

4.1.1

4 years ago

4.1.0

4 years ago

4.0.8

4 years ago

4.0.7

4 years ago

4.0.6

4 years ago

4.0.5

4 years ago

4.0.4

4 years ago

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.2.0

5 years ago

3.1.5

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.1.0-next.3

5 years ago

3.1.0-next.2

5 years ago

3.1.0-next.1

5 years ago

3.1.0-next.0

5 years ago

3.0.4-next.15

5 years ago

3.0.4-next.14

5 years ago

3.0.4-next.13

5 years ago

3.0.4-next.12

5 years ago

3.0.4-next.11

6 years ago

3.0.4-next.10

6 years ago

3.0.4-next.9

6 years ago

3.0.4-next.8

6 years ago

3.0.4-next.7

6 years ago

3.0.4-next.6

6 years ago

3.0.4-next.5

6 years ago

3.0.4-next.4

6 years ago

3.0.4-next.3

6 years ago

3.0.4-next.2

6 years ago

3.0.4-next.1

6 years ago

3.0.4-next.0

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.0

6 years ago

3.0.0-next.7

6 years ago

3.0.0-next.6

6 years ago

2.1.12

6 years ago

3.0.0-next.5

6 years ago

4.0.0-next.5

6 years ago

3.0.0-next.4

6 years ago

3.0.1

6 years ago

3.0.0-next.3

6 years ago

3.0.0-next.2

6 years ago

3.0.0-next.1

6 years ago

3.0.0-next.0

6 years ago

2.1.11

6 years ago

2.1.11-next.11

6 years ago

2.1.11-next.10

6 years ago

2.1.11-next.9

6 years ago

2.1.11-next.8

6 years ago

2.1.11-next.7

6 years ago

2.1.11-next.6

6 years ago

2.1.11-next.5

6 years ago

2.1.11-next.4

6 years ago

2.1.11-next.3

6 years ago

2.1.11-next.2

6 years ago

2.1.11-next.1

7 years ago

2.1.10

7 years ago

2.1.9

7 years ago

2.1.8

7 years ago

2.1.7

7 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.3-next.5

7 years ago

2.1.3-next.4

7 years ago

2.1.3-next.3

7 years ago

2.1.3-next.2

7 years ago

2.1.3-next.1

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.17-next.3

7 years ago

2.0.17-next.2

7 years ago

2.0.17-next.1

7 years ago

2.0.16

7 years ago

2.0.15

7 years ago

2.0.14

7 years ago

2.0.13

8 years ago

2.0.12

8 years ago

2.0.11

8 years ago

2.0.10

8 years ago

2.0.9

8 years ago

2.0.8

8 years ago

2.0.7

8 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2-next.2

8 years ago

2.0.2-next.1

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

2.0.0-next.6

8 years ago

2.0.0-next.5

8 years ago

2.0.0-next.4

8 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.0.1-next.4

9 years ago

1.0.1-next.3

9 years ago

1.0.1-next.2

9 years ago

1.0.1-next.1

9 years ago

1.0.0

9 years ago

1.0.0-next.9

9 years ago

1.0.0-next.8

9 years ago

1.0.0-next.7

9 years ago

1.0.0-next.6

9 years ago

1.0.0-next.5

9 years ago

1.0.0-next.4

9 years ago

1.0.0-next.3

9 years ago

1.0.0-next.2

9 years ago

1.0.0-next.1

9 years ago