🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@vue/typescript-plugin

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/typescript-plugin

<a href="https://github.com/vuejs/language-tools/blob/master/LI

Source
npmnpm
Version
3.2.5
Version published
Weekly downloads
96K
2.68%
Maintainers
2
Weekly downloads
 
Created
Source

@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:

CommandDescription
_vue:projectInfoGet project information
_vue:collectExtractPropsCollect extractable props
_vue:getImportPathForFileGet import path for a file
_vue:getAutoImportSuggestionsGet auto-import suggestions
_vue:resolveAutoImportCompletionEntryResolve auto-import completion entry
_vue:isRefAtPositionCheck if position is a ref
_vue:getComponentDirectivesGet component directives
_vue:getComponentNamesGet component name list
_vue:getComponentMetaGet component metadata
_vue:getComponentSlotsGet component slots
_vue:getElementAttrsGet element attributes
_vue:getElementNamesGet element name list
_vue:resolveModuleNameResolve module name
_vue:documentHighlights-fullDocument highlights
_vue:encodedSemanticClassifications-fullSemantic classifications
_vue:quickinfoQuick info

How it Works

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

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

License

MIT License

FAQs

Package last updated on 21 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts