{"name":"@vue/language-service","version":"2.2.12","license":"MIT","_id":"@vue/language-service@2.2.12","maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},{"name":"kazariex","email":"mimorimaboroshi@gmail.com"}],"dist":{"shasum":"277c9bd9ab02066782501f322ae833c383078026","tarball":"http://registry-npm.ywwl.com/@vue/language-service/download/@vue/language-service-2.2.12.tgz","fileCount":68,"integrity":"sha512-+YBLP82vyuXzO5Wkw23vMl+EPCZicv1EQtEjp/n/Wt4PjbPBSgR5KCuc4edcIA1rL70fsEPlSna3K+ibyZ2QIA==","signatures":[{"sig":"MEQCIEEda4rYynBA9kQlddtud7Ta74S6hdjqEj4DNSdCQuEqAiB+hdfL6UC40aHpvz8LaY5zoo5hUDWbjAaAHYLOWOVuJQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":873909,"size":197130,"noattachment":false,"key":"/@vue/language-service/-/@vue/language-service-2.2.12.tgz"},"gitHead":"0b13bf1966398ea3949b6b02d09b251ddc9a51eb","scripts":{"update-html-data":"node ./scripts/update-html-data.js"},"_npmUser":{"name":"johnsoncodehk","actor":{"name":"johnsoncodehk","type":"user","email":"johnsoncodehk@gmail.com"},"email":"johnsoncodehk@gmail.com"},"repository":{"url":"https://github.com/vuejs/language-tools.git","type":"git","directory":"packages/language-service"},"_npmVersion":"lerna/3.11.0/node@v22.14.0+arm64 (darwin)","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"vscode-uri":"^3.0.8","@vue/shared":"^3.5.0","alien-signals":"^1.0.3","path-browserify":"^1.0.1","@volar/typescript":"2.4.15","@vue/compiler-dom":"^3.5.0","volar-service-css":"0.0.64","volar-service-pug":"0.0.64","@vue/language-core":"2.2.12","volar-service-html":"0.0.64","volar-service-json":"0.0.64","volar-service-emmet":"0.0.64","@volar/language-core":"2.4.15","@vue/typescript-plugin":"2.2.12","@volar/language-service":"2.4.15","volar-service-typescript":"0.0.64","volar-service-pug-beautify":"0.0.64","vscode-css-languageservice":"^6.3.1","vscode-html-languageservice":"^5.2.0","vscode-languageserver-textdocument":"^1.0.11","volar-service-typescript-twoslash-queries":"0.0.64"},"_hasShrinkwrap":false,"devDependencies":{"@volar/kit":"2.4.15","@types/node":"^22.10.4","@types/path-browserify":"^1.0.1","vscode-languageserver-protocol":"^3.17.5"},"_npmOperationalInternal":{"tmp":"tmp/language-service_2.2.12_1751417840944_0.4326102488423651","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":1751417841143,"_cnpm_publish_time":1751417841143,"dist-tags":{"alpha":"4.0.0-alpha.3","latest":"3.3.14","v3.0":"3.0.11"}}