Add "vp" (Vite+) to npm.scriptRunner enum#308794
Open
jong-kyung wants to merge 1 commit intomicrosoft:mainfrom
Open
Add "vp" (Vite+) to npm.scriptRunner enum#308794jong-kyung wants to merge 1 commit intomicrosoft:mainfrom
jong-kyung wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
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 thenpm.scriptRunnerconfigurationenumandenumDescriptionsinextensions/npm/package.json. - Added a localized enum description string for the new
vpoption inextensions/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. |
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vp(Vite+) as a new option to thenpm.scriptRunnersetting enumWhy
Vite+ is the unified toolchain and entry point for web development. It provides a
vpCLI that manages runtime, package manager, and frontend toolchain in one place. Whennpm.scriptRunneris set tovp, VS Code's NPM Scripts panel executes scripts viavp 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>, butvpis not an officially declared enum value. This PR adds it as a first-class option.Changes
extensions/npm/package.json— Add"vp"to thenpm.scriptRunnerenum and enumDescriptionsextensions/npm/package.nls.json— Add description string: "Use Vite+ (vp) as the script runner."