{"_id":"@aliasliao/vscode-html-languageservice","_rev":"2-25dfc52dcbb55bd74e48c44e0fa5ae3a","name":"@aliasliao/vscode-html-languageservice","dist-tags":{"latest":"0.0.1","next":"0.0.1"},"versions":{"0.0.1":{"name":"@aliasliao/vscode-html-languageservice","version":"0.0.1","description":"Language service for HTML","main":"./lib/umd/htmlLanguageService.js","typings":"./lib/umd/htmlLanguageService","module":"./lib/esm/htmlLanguageService.js","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":{"@types/mocha":"^8.2.0","@types/node":"^10.12.21","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","eslint":"^7.18.0","js-beautify":"^1.13.4","mocha":"^8.2.1","rimraf":"^3.0.2","typescript":"^4.1.3","vscode-web-custom-data":"^0.3.3"},"dependencies":{"vscode-languageserver-textdocument":"^1.0.1","vscode-languageserver-types":"^3.16.0","vscode-nls":"^5.0.0","vscode-uri":"^3.0.2"},"scripts":{"prepublishOnly":"npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs","postpublish":"node ./build/post-publish.js","compile":"tsc -p ./src && npm run copy-jsbeautify","compile-esm":"tsc -p ./src/tsconfig.esm.json","watch":"tsc -w -p ./src && npm run copy-jsbeautify","clean":"rimraf lib","remove-sourcemap-refs":"node ./build/remove-sourcemap-refs.js","test":"npm run compile && mocha ./lib/umd/test/*.js && npm run lint","lint":"eslint src/**/*.ts","install-types-next":"yarn add vscode-languageserver-types@next -f -S && yarn add vscode-languageserver-textdocument@next -f -S","copy-jsbeautify":"node ./build/copy-jsbeautify.js","update-jsbeautify":"yarn add js-beautify && node ./build/update-jsbeautify.js","update-jsbeautify-next":"yarn add js-beautify@next && node ./build/update-jsbeautify.js","update-data":"node ./build/generateData.js","preversion":"npm test","postversion":"git push && git push --tags"},"gitHead":"106b074df01923e579d8ebc2429090abd339f219","homepage":"https://github.com/Microsoft/vscode-html-languageservice#readme","_id":"@aliasliao/vscode-html-languageservice@0.0.1","_nodeVersion":"12.20.2","_npmVersion":"6.14.11","dist":{"integrity":"sha512-YMvAJSsRvoy/EmTrx3ThPvM2FJgteS8kZpouk3p/vB7oFYE76dKP31J48CZKaw9a+1PxBXJy/iy6VadChPZfLQ==","shasum":"68a563b1e629643212badd8bc1c954518012e484","tarball":"https://registry.npmjs.org/@aliasliao/vscode-html-languageservice/-/vscode-html-languageservice-0.0.1.tgz","fileCount":79,"unpackedSize":1559969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNM6wCRA9TVsSAnZWagAA0YcP/jsepF3rvAc5ZDn6bZm7\n4qETrohf+Wqte6pmGZwJBQ0S6wQIx4dXqfqmQbYJSdbCWPcHnVcP3EaV9x/x\nOF6a+sTZPzm++rPM8HhF3ezAq/h8h2SFNGLG1rXww3Z43gKwiWwYB/Om8kbT\nNb7EfHG1/1LFK9r1ZO/3vlhhllyvPx35s/6jVFpTpkwzDkDqn+NNlRHc5DOY\npbLrdRzQyJ5+HPrA6JrOx8r7qEEmKMg4iHepIcrLcyCK9npQtjW5eI/pVvux\nvEMjNV/Uk+K8tFUpGXwjFBLxRFM4TXBwvVnjPncnJzhBRkOJjh1XvgcLiWnX\n/hm5jmAo3oVMR8PwbTzxJl+FA44Lpqj/K8Ey95XeLVVXAmKG8j6g99ZLNphT\nq7jC1fbnYF6Xi96y1aSm9hf3bjKbOSXw4o91K4LLo1ymR7fRnjPovuSgZiin\nPncQxjNtqXPUhR8iYFNqLmYUTcpjHjGa5Ce3RkU2/scC4JETi/51uhwR2DUb\n+0YoGQvUl2k08rsuvfnvbjmEHbAVroIeewxZ79bXWfXTvxBoyft/pFSbrC7R\nyhHVsfy4rdPA0NawPpKkr+m05r5hoHEf7K4K/CAYcaZBkXZrH3wYPB922HCy\nlmb79EBCaXNTGMvHR4zg1d/I4yXXgfehm0lGUz+hf1xcx9ynS5/obAUBVLXk\n4KeO\r\n=xtsT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHbBZRw709ClTh2W1zW4mME1/bwVhWUsRdlmsVs8BMiAiBt2umiCpxXfDs4w8/PAptOvmIOFbBrtdOHvQWUdoYHYw=="}]},"_npmUser":{"name":"aliasliao","email":"liaojinyuan@zju.edu.cn"},"directories":{},"maintainers":[{"name":"aliasliao","email":"liaojinyuan@zju.edu.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vscode-html-languageservice_0.0.1_1614073519697_0.5225468566233131"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-23T09:45:19.661Z","0.0.1":"2021-02-23T09:45:19.926Z","modified":"2022-04-04T12:53:32.676Z"},"maintainers":[{"name":"aliasliao","email":"liaojinyuan@zju.edu.cn"}],"description":"Language service for HTML","homepage":"https://github.com/Microsoft/vscode-html-languageservice#readme","repository":{"type":"git","url":"git+https://github.com/Microsoft/vscode-html-languageservice.git"},"author":{"name":"Microsoft Corporation"},"bugs":{"url":"https://github.com/Microsoft/vscode-html-languageservice"},"license":"MIT","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[![Azure DevOps Build Status](https://img.shields.io/azure-devops/build/vscode/4c3636fe-3a50-40b9-b8b4-f820ca92886f/22.svg?label=Azure%20DevOps)](https://dev.azure.com/vscode/vscode-html-languageservice/_build?definitionId=22)\n[![Travis Build Status](https://travis-ci.org/Microsoft/vscode-html-languageservice.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-html-languageservice)\n\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 yarn\n- `yarn 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 fodler 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`, `yarn link`\n  - cd `vscode/extensions/html-language-features/server`, `yarn 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-2020, Microsoft\n\nWith the exceptions of `data/*.json`, which is built upon content from [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web)\nand distributed under CC BY-SA 2.5.\n","readmeFilename":"README.md"}