Skip to content

Conversation

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Dec 20, 2025

@Tyriar Tyriar added this to the December / January 2026 milestone Dec 20, 2025
@Tyriar Tyriar self-assigned this Dec 20, 2025
Copilot AI review requested due to automatic review settings December 20, 2025 14:29
@Tyriar Tyriar changed the title Tyriar/284593 npm spec actual spec Add --package-lock-only to npm i flags Dec 20, 2025
Copy link
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

This PR migrates the npm completion spec from an upstream/external source to a VS Code-maintained implementation. The change removes 'npm' from the list of upstream specs and adds a new custom npm.ts file with the full npm command completion specification.

Key Changes

  • Added custom npm completion spec at extensions/terminal-suggest/src/completions/npm.ts with comprehensive npm command support
  • Removed 'npm' from the upstreamSpecs array in constants.ts
  • Registered the new npm spec in terminalSuggestMain.ts alongside other custom specs like git, gh, and npx

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
extensions/terminal-suggest/src/terminalSuggestMain.ts Added import and registration of the new npm completion spec
extensions/terminal-suggest/src/constants.ts Removed 'npm' from the upstreamSpecs list to use the custom implementation instead
extensions/terminal-suggest/src/completions/upstream/npm.ts Deleted the upstream npm spec file (1610 lines removed)
extensions/terminal-suggest/src/completions/npm.ts Added new custom npm completion spec (1613 lines) with generators for package search, dependencies, and scripts

@Tyriar Tyriar marked this pull request as ready for review December 21, 2025 00:32
@Tyriar Tyriar enabled auto-merge December 21, 2025 00:32
@Tyriar Tyriar merged commit 2e6cfee into main Dec 21, 2025
28 checks passed
@Tyriar Tyriar deleted the tyriar/284593_npm_spec__actual_spec branch December 21, 2025 01:18
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.

--package-lock-only missing from npm install completions

3 participants