vscode-html-languageservice
Language service for HTML
Last updated 8 years ago by aeschli .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install vscode-html-languageservice 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 5.1.2                                ...           latest (10 months ago)
  • 5.1.2                                ...           next (10 months ago)

137 Versions

  • 5.1.2                                ...           10 months ago
  • 5.1.1                                ...           a year ago
  • 5.1.0                                ...           a year ago
  • 5.0.7                                ...           a year ago
  • 5.0.6                                ...           2 years ago
  • 5.0.5                                ...           2 years ago
  • 5.0.4                                ...           2 years ago
  • 5.0.3                                ...           2 years ago
  • 5.0.2                                ...           2 years ago
  • 5.0.1                                ...           2 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                                ...           3 years ago
  • 4.1.1                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.8                                ...           3 years ago
  • 4.0.7                                ...           3 years ago
  • 4.0.6                                ...           3 years ago
  • 4.0.5                                ...           3 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                                ...           4 years ago
  • 3.1.5                                ...           4 years ago
  • 3.1.4                                ...           4 years ago
  • 3.1.3                                ...           4 years ago
  • 3.1.2                                ...           4 years ago
  • 3.1.1                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.1.0-next.3                                ...           4 years ago
  • 3.1.0-next.2                                ...           4 years ago
  • 3.1.0-next.1                                ...           4 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                                ...           5 years ago
  • 3.0.4-next.10                                ...           5 years ago
  • 3.0.4-next.9                                ...           5 years ago
  • 3.0.4-next.8                                ...           5 years ago
  • 3.0.4-next.7                                ...           5 years ago
  • 3.0.4-next.6                                ...           5 years ago
  • 3.0.4-next.5                                ...           5 years ago
  • 3.0.4-next.4                                ...           5 years ago
  • 3.0.4-next.3                                ...           5 years ago
  • 3.0.4-next.2                                ...           5 years ago
  • 3.0.4-next.1                                ...           5 years ago
  • 3.0.4-next.0                                ...           5 years ago
  • 3.0.3                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.0                                ...           5 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                                ...           6 years ago
  • 2.1.10                                ...           6 years ago
  • 2.1.9                                ...           6 years ago
  • 2.1.8                                ...           6 years ago
  • 2.1.7                                ...           6 years ago
  • 2.1.6                                ...           6 years ago
  • 2.1.5                                ...           6 years ago
  • 2.1.4                                ...           6 years ago
  • 2.1.3                                ...           6 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                                ...           7 years ago
  • 2.0.12                                ...           7 years ago
  • 2.0.11                                ...           7 years ago
  • 2.0.10                                ...           7 years ago
  • 2.0.9                                ...           7 years ago
  • 2.0.8                                ...           7 years ago
  • 2.0.7                                ...           7 years ago
  • 2.0.6                                ...           7 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                                ...           8 years ago
  • 2.0.0-next.2                                ...           8 years ago
  • 2.0.0-next.1                                ...           8 years ago
  • 1.0.1-next.4                                ...           8 years ago
  • 1.0.1-next.3                                ...           8 years ago
  • 1.0.1-next.2                                ...           8 years ago
  • 1.0.1-next.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 1.0.0-next.9                                ...           8 years ago
  • 1.0.0-next.8                                ...           8 years ago
  • 1.0.0-next.7                                ...           8 years ago
  • 1.0.0-next.6                                ...           8 years ago
  • 1.0.0-next.5                                ...           8 years ago
  • 1.0.0-next.4                                ...           8 years ago
  • 1.0.0-next.3                                ...           8 years ago
  • 1.0.0-next.2                                ...           8 years ago
  • 1.0.0-next.1                                ...           8 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (6)

Copyright 2013 - present © cnpmjs.org | Home |