{"name":"@vue/language-service","version":"3.2.2","license":"MIT","_id":"@vue/language-service@3.2.2","maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},{"name":"kazariex","email":"mimorimaboroshi@gmail.com"}],"homepage":"https://github.com/vuejs/language-tools#readme","bugs":{"url":"https://github.com/vuejs/language-tools/issues"},"dist":{"shasum":"16937d2f42ab7b3dbc5963797ed70a721179e214","tarball":"http://registry-npm.ywwl.com/@vue/language-service/download/@vue/language-service-3.2.2.tgz","fileCount":82,"integrity":"sha512-sv6mug6j1GsJSIOsYS+3x2Lq69VS7BXUUP1qD6tBxr7WlENwU8rXSk3a/FJAVw807AMQIPi+U1LkqdxHQkCzjw==","signatures":[{"sig":"MEYCIQDzw95kxnGNz2x2ecwP2U39gbkGdjNxWBGV31aX+skgSAIhAK79UDFYGoixCYpqnp5YyN3SRRYtZsg4/fJ3iJuKyei8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":888471,"size":201293,"noattachment":false,"key":"/@vue/language-service/-/@vue/language-service-3.2.2.tgz"},"types":"./index.d.ts","gitHead":"17394f4e80c2267e8b7159468ab40c948ea37d65","scripts":{"update-html-data":"node ./scripts/update-html-data.js"},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"repository":{"url":"git+https://github.com/vuejs/language-tools.git","type":"git","directory":"packages/language-service"},"_npmVersion":"lerna/4.10.3/node@v24.12.0+x64 (linux)","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"vscode-uri":"^3.0.8","@vue/shared":"^3.5.0","path-browserify":"^1.0.1","volar-service-css":"0.0.68","volar-service-pug":"0.0.68","@vue/language-core":"3.2.2","volar-service-html":"0.0.68","volar-service-json":"0.0.68","volar-service-emmet":"0.0.68","@volar/language-service":"2.4.27","volar-service-typescript":"0.0.68","volar-service-pug-beautify":"0.0.68","vscode-html-languageservice":"^5.2.0"},"_hasShrinkwrap":false,"devDependencies":{"@volar/kit":"2.4.27","@types/node":"^22.10.4","@volar/typescript":"2.4.27","@vue/compiler-dom":"^3.5.0","@types/path-browserify":"^1.0.1","@vue/typescript-plugin":"3.2.2","vscode-css-languageservice":"^6.3.1"},"_npmOperationalInternal":{"tmp":"tmp/language-service_3.2.2_1767642884287_0.31818537237701916","host":"s3://npm-registry-packages-npm-production"},"readme":"# @vue/language-service\n\n<p>\n  <a href=\"https://www.npmjs.com/package/@vue/language-service\"><img src=\"https://img.shields.io/npm/v/@vue/language-service.svg?labelColor=18181B&color=1584FC\" alt=\"NPM version\"></a>\n  <a href=\"https://github.com/vuejs/language-tools/blob/master/LICENSE\"><img src=\"https://img.shields.io/github/license/vuejs/language-tools.svg?labelColor=18181B&color=1584FC\" alt=\"License\"></a>\n</p>\n\nA collection of Vue language service plugins, providing the core implementation for IDE features. This package integrates various language services such as TypeScript, CSS, HTML, Pug, and Emmet, and adds Vue-specific feature plugins.\n\n## Installation\n\n```bash\nnpm install @vue/language-service\n```\n\n## Usage\n\n```typescript\nimport { createVueLanguageServicePlugins } from '@vue/language-service';\nimport * as ts from 'typescript';\n\n// Create Vue language service plugins\n// The optional second argument `client` is used for communication with @vue/typescript-plugin\nconst plugins = createVueLanguageServicePlugins(ts);\n```\n\n## Built-in Plugins\n\n### General Language Services\n\n| Plugin | Source | Description |\n| :--- | :--- | :--- |\n| JSON | `volar-service-json` | JSON language service |\n| Pug Format | `volar-service-pug-beautify` | Pug formatting |\n| Emmet | `volar-service-emmet` | Emmet abbreviation expansion |\n| TypeScript Syntactic | `volar-service-typescript` | TypeScript syntactic features |\n| TypeScript Doc Comment | `volar-service-typescript` | JSDoc comment templates |\n\n### Vue-specific Plugins\n\n| Plugin | Description |\n| :--- | :--- |\n| `vue-sfc` | SFC structure support, including folding, symbols, document links |\n| `vue-template` | Template language service, supporting HTML and Pug |\n| `vue-format-per-block` | Formatting per block |\n| `vue-compiler-dom-errors` | Vue compiler error diagnostics |\n| `vue-directive-comments` | Directive comment support (`<!-- @vue-skip -->`, etc.) |\n| `vue-component-semantic-tokens` | Component semantic tokens |\n| `vue-inlayhints` | Inlay hints (destructured props, inline handlers, etc.) |\n| `vue-missing-props-hints` | Hints for missing required props |\n| `vue-autoinsert-dotvalue` | Auto-insertion of `.value` for ref variables |\n| `vue-autoinsert-space` | Auto-insertion of spaces in template interpolations |\n| `vue-scoped-class-links` | Scoped CSS class name links |\n| `vue-template-ref-links` | Template ref links |\n| `vue-extract-file` | Extract component refactoring |\n| `vue-document-drop` | Auto-generation of import on file drop |\n| `vue-document-highlights` | Document highlights |\n| `vue-suggest-define-assignment` | Assignment suggestions for `defineProps`, etc. |\n| `vue-twoslash-queries` | Twoslash query support (`// ^?`) |\n| `css` | CSS language service, supporting v-bind and CSS Modules |\n| `typescript-semantic-tokens` | TypeScript semantic tokens |\n\n## Usage with @volar/kit\n\nTo use the language service in a Node.js environment (e.g., for linting or testing):\n\n```typescript\nimport { createLanguage, createVueLanguagePlugin } from '@vue/language-core';\nimport { createLanguageService, createVueLanguageServicePlugins } from '@vue/language-service';\nimport ts from 'typescript';\n\nconst language = createLanguage([\n  createVueLanguagePlugin(ts, compilerOptions, vueCompilerOptions, asFileName),\n]);\n\nconst service = createLanguageService(\n  language,\n  createVueLanguageServicePlugins(ts),\n  env,\n);\n```\n\n## Related Packages\n\n- [`@vue/language-core`](../language-core) - Core module\n- [`@vue/language-server`](../language-server) - Language server\n- [`@volar/language-service`](https://github.com/volarjs/volar.js) - Volar.js base framework\n\n## License\n\n[MIT](https://github.com/vuejs/language-tools/blob/master/LICENSE) License\n","publish_time":1767642884470,"_cnpm_publish_time":1767642884470,"dist-tags":{"alpha":"4.0.0-alpha.3","latest":"3.3.14","v3.0":"3.0.11"}}