Skip to content

Add "vp" (Vite+) to npm.scriptRunner enum#308794

Open
jong-kyung wants to merge 1 commit intomicrosoft:mainfrom
jong-kyung:feat/npm-scriptrunner-vp
Open

Add "vp" (Vite+) to npm.scriptRunner enum#308794
jong-kyung wants to merge 1 commit intomicrosoft:mainfrom
jong-kyung:feat/npm-scriptrunner-vp

Conversation

@jong-kyung
Copy link
Copy Markdown

Summary

  • Add vp (Vite+) as a new option to the npm.scriptRunner setting enum
  • Add localization string for the new option

Why

Vite+ is the unified toolchain and entry point for web development. It provides a vp CLI that manages runtime, package manager, and frontend toolchain in one place. When npm.scriptRunner is set to vp, VS Code's NPM Scripts panel executes scripts via vp run <script>, which enables intelligent caching and dependency-aware task execution.

Currently, setting "npm.scriptRunner": "vp" works because VS Code treats unknown values as <runner> run <script>, but vp is not an officially declared enum value. This PR adds it as a first-class option.

Changes

  • extensions/npm/package.json — Add "vp" to the npm.scriptRunner enum and enumDescriptions
  • extensions/npm/package.nls.json — Add description string: "Use Vite+ (vp) as the script runner."

Copilot AI review requested due to automatic review settings April 9, 2026 14:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Vite+ (vp) as a first-class, documented option for the npm.scriptRunner setting in the built-in NPM extension, so users can select it from the setting’s enum (instead of relying on an undeclared/unknown value).

Changes:

  • Added "vp" to the npm.scriptRunner configuration enum and enumDescriptions in extensions/npm/package.json.
  • Added a localized enum description string for the new vp option in extensions/npm/package.nls.json.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
extensions/npm/package.json Extends the npm.scriptRunner setting schema to include the new "vp" enum value and description reference.
extensions/npm/package.nls.json Provides the localized description string for the new vp script runner option.

@jong-kyung
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants