{"name":"@vue/typescript-plugin","version":"2.1.2","license":"MIT","repository":{"type":"git","url":"https://github.com/vuejs/language-tools.git","directory":"packages/typescript-plugin"},"dependencies":{"@volar/typescript":"~2.4.1","@vue/language-core":"2.1.2","@vue/shared":"^3.4.0"},"devDependencies":{"@types/node":"latest"},"gitHead":"4e4b839ea20ae11a2aef7ee9206465cb60a4be53","_nodeVersion":"20.14.0","_npmVersion":"lerna/3.8.0/node@v20.14.0+arm64 (darwin)","_id":"@vue/typescript-plugin@2.1.2","dist":{"integrity":"sha512-F96IB5biZJQ7QckSts62VtKy6YY3FnZTlhkph0p8MyJnngcmQpOI8HwgigIiQcOI0uC6L2TqBdrFHOpG2SMn3Q==","shasum":"a3eb2beae7b2393d0235fbb61cea1fedac26c9c6","tarball":"http://registry-npm.ywwl.com/@vue/typescript-plugin/download/@vue/typescript-plugin-2.1.2.tgz","fileCount":25,"unpackedSize":53277,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrbGC8BKUPAxJ3sXQBAHo78PL2Zpp4uTXbRfIjXB/26QIhAPT9aUxujr78mSjzprodgiBOJ7m7RleylI0KHrVORS+s"}],"size":11584,"noattachment":false,"key":"/@vue/typescript-plugin/-/@vue/typescript-plugin-2.1.2.tgz"},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typescript-plugin_2.1.2_1724919853593_0.4384392633321137"},"_hasShrinkwrap":false,"readme":"# @vue/typescript-plugin\n\n<p>\n  <a href=\"https://www.npmjs.com/package/@vue/typescript-plugin\"><img src=\"https://img.shields.io/npm/v/@vue/typescript-plugin.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 TypeScript language service plugin that enables `tsserver` to understand `.vue` files. This plugin is used by `@vue/language-server` to collaborate with the TypeScript language service.\n\n## Installation\n\n```bash\nnpm install @vue/typescript-plugin --save-dev\n```\n\n## Configuration\n\n### VSCode\n\nCreate `.vscode/settings.json` in your project root:\n\n```json\n{\n  \"typescript.tsdk\": \"node_modules/typescript/lib\",\n  \"typescript.enablePromptUseWorkspaceTsdk\": true\n}\n```\n\n### tsconfig.json\n\n```jsonc\n{\n  \"compilerOptions\": {\n    \"plugins\": [\n      { \"name\": \"@vue/typescript-plugin\" }\n    ]\n  }\n}\n```\n\n## Provided Features\n\nThis plugin registers the following Vue-specific commands for `tsserver`:\n\n| Command | Description |\n| :--- | :--- |\n| `_vue:projectInfo` | Get project information |\n| `_vue:collectExtractProps` | Collect extractable props |\n| `_vue:getImportPathForFile` | Get import path for a file |\n| `_vue:getAutoImportSuggestions` | Get auto-import suggestions |\n| `_vue:resolveAutoImportCompletionEntry` | Resolve auto-import completion entry |\n| `_vue:isRefAtPosition` | Check if position is a ref |\n| `_vue:getComponentDirectives` | Get component directives |\n| `_vue:getComponentMeta` | Get component metadata |\n| `_vue:getComponentNames` | Get component name list |\n| `_vue:getComponentProps` | Get component props |\n| `_vue:getComponentSlots` | Get component slots |\n| `_vue:getElementAttrs` | Get element attributes |\n| `_vue:getElementNames` | Get element name list |\n| `_vue:resolveModuleName` | Resolve module name |\n| `_vue:documentHighlights-full` | Document highlights |\n| `_vue:encodedSemanticClassifications-full` | Semantic classifications |\n| `_vue:quickinfo` | Quick info |\n\n## How it Works\n\nThis plugin is created using `createLanguageServicePlugin` from `@volar/typescript`. It:\n\n1. Reads `vueCompilerOptions` from `tsconfig.json`\n2. Creates a Vue language plugin to process `.vue` files\n3. Intercepts and handles TypeScript language service requests\n4. Registers Vue-specific protocol handlers\n\n## Related Packages\n\n- [`@vue/language-core`](../language-core) - Core module\n- [`@vue/language-server`](../language-server) - Language server\n- [`vue-component-meta`](../component-meta) - Component metadata\n\n## License\n\n[MIT](https://github.com/vuejs/language-tools/blob/master/LICENSE) License\n","publish_time":1724919853755,"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_cnpm_publish_time":1724919853755,"dist-tags":{"latest":"3.3.14","v3.0":"3.0.11"}}