{"name":"@vue/language-service","version":"2.2.2","license":"MIT","_id":"@vue/language-service@2.2.2","dist":{"shasum":"15f3d5b0a7c1f951879614d033dca9da682878f1","tarball":"http://registry-npm.ywwl.com/@vue/language-service/download/@vue/language-service-2.2.2.tgz","fileCount":68,"integrity":"sha512-TRCGRgJJ6v+qCtpHrwKkwol7VpcmyfjYDP5j5lRNWmyb8SRB3bKYqmshMYzDuL8YfT5tOxmSRVstDKYV7mucXA==","signatures":[{"sig":"MEQCIAiCQJR2sQy4H2cTxcp9oLYNODCYBI/z3I0mW9eOpVhmAiAPJVYqN/jctv8posO11toBw9eDII9sUyi4zO7/sEN1lw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":866472,"size":195828,"noattachment":false,"key":"/@vue/language-service/-/@vue/language-service-2.2.2.tgz"},"gitHead":"30757908b67f40f779c36795665163634fb81868","scripts":{"update-html-data":"node ./scripts/update-html-data.js"},"_npmUser":{"name":"johnsoncodehk","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@v23.0.0+x64 (win32)","directories":{},"sideEffects":false,"_nodeVersion":"23.0.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.11","@vue/compiler-dom":"^3.5.0","volar-service-css":"0.0.62","volar-service-pug":"0.0.62","@vue/language-core":"2.2.2","volar-service-html":"0.0.62","volar-service-json":"0.0.62","volar-service-emmet":"0.0.62","@volar/language-core":"~2.4.11","@vue/typescript-plugin":"2.2.2","@volar/language-service":"~2.4.11","volar-service-typescript":"0.0.62","volar-service-pug-beautify":"0.0.62","vscode-html-languageservice":"^5.2.0","vscode-languageserver-textdocument":"^1.0.11","volar-service-typescript-twoslash-queries":"0.0.62"},"_hasShrinkwrap":false,"devDependencies":{"@volar/kit":"~2.4.11","@types/node":"^22.10.4","@types/path-browserify":"^1.0.1","vscode-languageserver-protocol":"^3.17.5"},"_npmOperationalInternal":{"tmp":"tmp/language-service_2.2.2_1739635684066_0.2277204375709443","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":1739635684337,"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},{"name":"kazariex","email":"mimorimaboroshi@gmail.com"}],"_cnpm_publish_time":1739635684337,"dist-tags":{"alpha":"4.0.0-alpha.3","latest":"3.3.14","v3.0":"3.0.11"}}