@vue/typescript-plugin
<p> <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> <a href="https://github.com/vuejs/language-tools/blob/master/LI
Last updated 3 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @vue/typescript-plugin 
SYNC missed versions from official npm registry.

@vue/typescript-plugin

NPM version License

A 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.

Installation

npm install @vue/typescript-plugin --save-dev

Configuration

VSCode

Create .vscode/settings.json in your project root:

{
  "typescript.tsdk": "node_modules/typescript/lib",
  "typescript.enablePromptUseWorkspaceTsdk": true
}

tsconfig.json

{
  "compilerOptions": {
    "plugins": [
      { "name": "@vue/typescript-plugin" }
    ]
  }
}

Provided Features

This plugin registers the following Vue-specific commands for tsserver:

Command Description
_vue:projectInfo Get project information
_vue:collectExtractProps Collect extractable props
_vue:getImportPathForFile Get import path for a file
_vue:getAutoImportSuggestions Get auto-import suggestions
_vue:resolveAutoImportCompletionEntry Resolve auto-import completion entry
_vue:isRefAtPosition Check if position is a ref
_vue:getComponentDirectives Get component directives
_vue:getComponentMeta Get component metadata
_vue:getComponentNames Get component name list
_vue:getComponentProps Get component props
_vue:getComponentSlots Get component slots
_vue:getElementAttrs Get element attributes
_vue:getElementNames Get element name list
_vue:resolveModuleName Resolve module name
_vue:documentHighlights-full Document highlights
_vue:encodedSemanticClassifications-full Semantic classifications
_vue:quickinfo Quick info

How it Works

This plugin is created using createLanguageServicePlugin from @volar/typescript. It:

  1. Reads vueCompilerOptions from tsconfig.json
  2. Creates a Vue language plugin to process .vue files
  3. Intercepts and handles TypeScript language service requests
  4. Registers Vue-specific protocol handlers

Related Packages

License

MIT License

Current Tags

  • 3.3.14                                ...           latest (a month ago)
  • 3.0.11                                ...           v3.0 (6 months ago)

104 Versions

  • 3.3.14                                ...           a month ago
  • 3.3.13                                ...           2 months ago
  • 3.3.12                                ...           2 months ago
  • 3.3.11                                ...           3 months ago
  • 3.3.10                                ...           3 months ago
  • 3.3.9                                ...           4 months ago
  • 3.3.8                                ...           4 months ago
  • 3.3.7                                ...           5 months ago
  • 3.3.6                                ...           5 months ago
  • 3.3.5                                ...           5 months ago
  • 3.0.11                                ...           6 months ago
  • 3.3.4                                ...           6 months ago
  • 3.3.3                                ...           6 months ago
  • 3.3.2                                ...           6 months ago
  • 3.3.1                                ...           6 months ago
  • 3.3.0                                ...           6 months ago
  • 3.2.9                                ...           6 months ago
  • 3.2.8                                ...           7 months ago
  • 3.2.7                                ...           7 months ago
  • 3.2.6                                ...           8 months ago
  • 3.2.5                                ...           9 months ago
  • 3.2.4                                ...           10 months ago
  • 3.2.3                                ...           10 months ago
  • 3.2.2                                ...           a year ago
  • 3.2.1                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 3.1.8                                ...           a year ago
  • 3.1.7                                ...           a year ago
  • 3.1.6                                ...           a year ago
  • 3.1.5                                ...           a year ago
  • 3.1.4                                ...           a year ago
  • 3.1.3                                ...           a year ago
  • 3.1.2                                ...           a year ago
  • 3.0.10                                ...           a year ago
  • 3.0.9                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.8                                ...           a year ago
  • 3.1.0-alpha.0                                ...           a year ago
  • 3.0.7                                ...           a year ago
  • 3.0.7-alpha.1                                ...           a year ago
  • 3.0.7-alpha.0                                ...           a year ago
  • 3.0.6                                ...           a year ago
  • 3.0.5                                ...           a year ago
  • 3.0.4                                ...           a year ago
  • 3.0.3                                ...           a year ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 2.2.12                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 3.0.0-beta.5                                ...           a year ago
  • 3.0.0-beta.4                                ...           a year ago
  • 3.0.0-beta.3                                ...           a year ago
  • 3.0.0-beta.2                                ...           a year ago
  • 3.0.0-beta.1                                ...           a year ago
  • 3.0.0-alpha.10                                ...           a year ago
  • 3.0.0-alpha.8                                ...           2 years ago
  • 3.0.0-alpha.6                                ...           2 years ago
  • 2.2.10                                ...           2 years ago
  • 3.0.0-alpha.4                                ...           2 years ago
  • 3.0.0-alpha.2                                ...           2 years ago
  • 3.0.0-alpha.0                                ...           2 years ago
  • 2.2.8                                ...           2 years ago
  • 2.2.6                                ...           2 years ago
  • 2.2.4                                ...           2 years ago
  • 2.2.2                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.10                                ...           2 years ago
  • 2.1.8                                ...           2 years ago
  • 2.1.6                                ...           2 years ago
  • 2.1.5 [deprecated]           ...           2 years ago
  • 2.1.4                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.29                                ...           2 years ago
  • 2.0.28                                ...           2 years ago
  • 2.0.26                                ...           2 years ago
  • 2.0.26-alpha.2                                ...           2 years ago
  • 2.0.26-alpha.1                                ...           2 years ago
  • 2.0.26-alpha.0                                ...           2 years ago
  • 2.0.24                                ...           2 years ago
  • 2.0.23-alpha.1                                ...           2 years ago
  • 2.0.23-alpha.0                                ...           2 years ago
  • 2.0.22                                ...           2 years ago
  • 2.0.21                                ...           2 years ago
  • 2.0.20                                ...           2 years ago
  • 2.0.19                                ...           3 years ago
  • 2.0.18                                ...           3 years ago
  • 2.0.17                                ...           3 years ago
  • 2.0.16                                ...           3 years ago
  • 2.0.15                                ...           3 years ago
  • 2.0.14                                ...           3 years ago
  • 2.0.13                                ...           3 years ago
  • 2.0.12                                ...           3 years ago
  • 2.0.11                                ...           3 years ago
  • 2.0.10                                ...           3 years ago
  • 2.0.7                                ...           3 years ago
  • 2.0.6                                ...           3 years ago
  • 2.0.5                                ...           3 years ago
  • 2.0.4                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
Downloads
Total 384
Today 0
This Week 1
This Month 221
Last Day 0
Last Week 166
Last Month 152
Dependencies (5)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE