{"name":"vscode-html-languageservice","version":"2.0.0","description":"Language service for HTML","main":"./lib/htmlLanguageService.js","typings":"./lib/htmlLanguageService","author":{"name":"Microsoft Corporation"},"repository":{"type":"git","url":"git+https://github.com/Microsoft/vscode-html-languageservice.git"},"license":"MIT","bugs":{"url":"https://github.com/Microsoft/vscode-html-languageservice"},"devDependencies":{"mocha":"^2.4.5","typescript":"^2.1.5","@types/node":"^6.0.51","@types/mocha":"^2.2.33"},"dependencies":{"vscode-languageserver-types":"^3.0.3","vscode-nls":"^2.0.2","vscode-uri":"^1.0.0"},"scripts":{"prepublish":"npm run compile","compile":"tsc -p ./src && cp ./src/beautify/*.js ./lib/beautify","watch":"cp ./src/beautify/*.js ./lib/beautify && tsc -w -p ./src","test":"npm run compile && mocha","install-types-next":"npm install vscode-languageserver-types@next -f -S"},"gitHead":"fc4c4096bc4cf802d06616468051ab3d5bb77298","homepage":"https://github.com/Microsoft/vscode-html-languageservice#readme","_id":"vscode-html-languageservice@2.0.0","_shasum":"2022b63a404d3ebc2ca5b6e8ddc67de72022cdda","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"aeschli","email":"martinae@microsoft.com"},"dist":{"shasum":"2022b63a404d3ebc2ca5b6e8ddc67de72022cdda","tarball":"http://registry-npm.ywwl.com/vscode-html-languageservice/download/vscode-html-languageservice-2.0.0.tgz","integrity":"sha512-zrA7lh0tEq4mYoMi0bPSsSWmExK9iTrqlFXcq8KuXKePi2+SUjKFpYWrGD429lwspR66xn+sMqyQMW97uaqYsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6WEa/6w4ldBOxj5wRR2kiHlLnqPYiL1QrAzO99ZvavQIhAISJfj5qZWD+qmwo10aA7w1Fgl3UF1R1VhlD9dK4YJcJ"}],"size":55520,"noattachment":false,"key":"/vscode-html-languageservice/-/vscode-html-languageservice-2.0.0.tgz"},"maintainers":[{"name":"aeschli","email":"martinae@microsoft.com"},{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"dbaeumer","email":"dirk.baeumer@gmail.com"},{"name":"egamma","email":"egamma@microsoft.com"},{"name":"joaomoreno.ms","email":"joao.moreno@microsoft.com"},{"name":"microsoft","email":"npmjs@microsoft.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/vscode-html-languageservice-2.0.0.tgz_1487349059971_0.22027359041385353"},"directories":{},"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":1487349060551,"_cnpm_publish_time":1487349060551,"dist-tags":{"latest":"5.6.2","next":"6.0.0-next.2"}}