{"name":"vscode-html-languageservice","version":"5.3.1","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-html-languageservice@5.3.1","homepage":"https://github.com/Microsoft/vscode-html-languageservice#readme","bugs":{"url":"https://github.com/Microsoft/vscode-html-languageservice"},"dist":{"shasum":"93cac1cebb42165b52a15220f02c47d1320fc43a","tarball":"http://registry-npm.ywwl.com/vscode-html-languageservice/download/vscode-html-languageservice-5.3.1.tgz","fileCount":75,"integrity":"sha512-ysUh4hFeW/WOWz/TO9gm08xigiSsV/FOAZ+DolgJfeLftna54YdmZ4A+lIn46RbdO3/Qv5QHTn1ZGqmrXQhZyA==","signatures":[{"sig":"MEYCIQCvb+ztN0I8Qn9LSxiw9EQB0RwI9cZwTykhkUHxCyPfFQIhAJ+5Fwl9SoCh66UHTJQogeKwnVjVuJkpY3cWO3dTdD1o","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1582649,"size":256057,"noattachment":false,"key":"/vscode-html-languageservice/-/vscode-html-languageservice-5.3.1.tgz"},"main":"./lib/umd/htmlLanguageService.js","_from":"file:vscode-html-languageservice-5.3.1.tgz","module":"./lib/esm/htmlLanguageService.js","scripts":{"lint":"eslint src/**/*.ts","test":"npm run compile && mocha --timeout 5000 ./lib/umd/test/*.js && npm run lint","clean":"rimraf lib","watch":"tsc -w -p ./src && npm run copy-jsbeautify","compile":"tsc -p ./src && npm run copy-jsbeautify","prepack":"npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs","compile-esm":"tsc -p ./src/tsconfig.esm.json","update-data":"npm i @vscode/web-custom-data -D && node ./build/generateData.js","copy-jsbeautify":"node ./build/copy-jsbeautify.js","update-jsbeautify":"npm i js-beautify && node ./build/update-jsbeautify.js","install-types-next":"npm i vscode-languageserver-types@next -f -S && npm i vscode-languageserver-textdocument@next -f -S","remove-sourcemap-refs":"node ./build/remove-sourcemap-refs.js","update-jsbeautify-next":"npm i js-beautify@next && node ./build/update-jsbeautify.js"},"typings":"./lib/umd/htmlLanguageService","_npmUser":{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"},"_resolved":"/mnt/vss/_work/1/vscode-html-languageservice/vscode-html-languageservice-5.3.1.tgz","_integrity":"sha512-ysUh4hFeW/WOWz/TO9gm08xigiSsV/FOAZ+DolgJfeLftna54YdmZ4A+lIn46RbdO3/Qv5QHTn1ZGqmrXQhZyA==","repository":{"url":"git+https://github.com/Microsoft/vscode-html-languageservice.git","type":"git"},"_npmVersion":"10.8.1","description":"Language service for HTML","directories":{},"_nodeVersion":"20.16.0","dependencies":{"vscode-uri":"^3.0.8","@vscode/l10n":"^0.0.18","vscode-languageserver-types":"^3.17.5","vscode-languageserver-textdocument":"^1.0.12"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.7.3","eslint":"^9.9.1","rimraf":"^6.0.1","typescript":"5.5.4","@types/node":"18.x","js-beautify":"^1.15.1","@types/mocha":"^10.0.7","@vscode/web-custom-data":"^0.4.11","@typescript-eslint/parser":"^8.3.0","@typescript-eslint/eslint-plugin":"^8.3.0"},"_npmOperationalInternal":{"tmp":"tmp/vscode-html-languageservice_5.3.1_1724703704242_0.4061281088014308","host":"s3://npm-registry-packages"},"readme":"# vscode-html-languageservice\nHTML language service extracted from VSCode to be reused, e.g in the Monaco editor.\n\n[![npm Package](https://img.shields.io/npm/v/vscode-html-languageservice.svg?style=flat-square)](https://www.npmjs.org/package/vscode-html-languageservice)\n[![NPM Downloads](https://img.shields.io/npm/dm/vscode-html-languageservice.svg)](https://npmjs.org/package/vscode-html-languageservice)\n[![Build Status](https://github.com/microsoft/vscode-html-languageservice/actions/workflows/node.js.yml/badge.svg)](https://github.com/microsoft/vscode-html-languageservice/actions)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nWhy?\n----\n\nThe _vscode-html-languageservice_ contains the language smarts behind the HTML editing experience of Visual Studio Code\nand the Monaco editor.\n\n - *doComplete* / *doComplete2* (async) provide completion proposals for a given location.\n - *setCompletionParticipants* allows participant to provide suggestions for specific tokens.\n - *doHover* provides hover information at a given location.\n\n - *format* formats the code at the given range.\n - *findDocumentLinks* finds all links in the document.\n - *findDocumentSymbols* finds all the symbols in the document.\n - *getFoldingRanges* return folding ranges for the given document.\n - *getSelectionRanges* return the selection ranges for the given document.\n ...\n\n For the complete API see [htmlLanguageService.ts](./src/htmlLanguageService.ts) and [htmlLanguageTypes.ts](./src/htmlLanguageTypes.ts)\n\nInstallation\n------------\n\n    npm install --save vscode-html-languageservice\n\nDevelopment\n-----------\n\n- clone this repo, run `npm i``\n- `npm test` to compile and run tests\n\n\nHow can I run and debug the service?\n\n- open the folder in VSCode.\n- set breakpoints, e.g. in `htmlCompletion.ts`\n- run the Unit tests from the run viewlet and wait until a breakpoint is hit:\n![image](https://user-images.githubusercontent.com/6461412/94239202-bdad4e80-ff11-11ea-99c3-cb9dbeb1c0b2.png)\n\n\nHow can I run and debug the service inside an instance of VSCode?\n\n- run VSCode out of sources setup as described here: https://github.com/Microsoft/vscode/wiki/How-to-Contribute\n- 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:\n  - cd `vscode-html-languageservice`, `npm link`\n  - cd `vscode/extensions/html-language-features/server`, `npm link vscode-html-languageservice`\n- run VSCode out of source (`vscode/scripts/code.sh|bat`) and open a `.html` file\n- 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\n![image](https://user-images.githubusercontent.com/6461412/94239296-dfa6d100-ff11-11ea-8e30-6444cf5defb8.png)\n- set breakpoints, e.g. in `htmlCompletion.ts`\n- in the instance run from sources, invoke code completion in the `.html` file\n\n\nLicense\n-------\n\n(MIT License)\n\nCopyright 2016-2023, Microsoft\n\n`src/languageFacts/data/webCustomData.ts` (shipped as `lib/esm/languageFacts/data/webCustomData.ts` and `lib/umd/languageFacts/data/webCustomData.ts`)\nare built upon content from [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web) and distributed under CC BY-SA 2.5.\n","publish_time":1724703704500,"maintainers":[{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"joaomoreno.ms","email":"joao.moreno@microsoft.com"},{"name":"kaimaetzel","email":"kamaet@microsoft.com"},{"name":"sbatten","email":"steven.m.batten@outlook.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"lszomoru","email":"lszomoru@microsoft.com"},{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"}],"_cnpm_publish_time":1724703704500,"dist-tags":{"latest":"5.6.2","next":"6.0.0-next.2"}}