Skip to content

node_modules is stale -> ignore node-version changes#303609

Merged
hediet merged 1 commit intomainfrom
hediet/b/intellectual-jay
Mar 20, 2026
Merged

node_modules is stale -> ignore node-version changes#303609
hediet merged 1 commit intomainfrom
hediet/b/intellectual-jay

Conversation

@hediet
Copy link
Copy Markdown
Member

@hediet hediet commented Mar 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 20, 2026 20:21
@hediet hediet enabled auto-merge (rebase) March 20, 2026 20:22
@hediet hediet self-assigned this Mar 20, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 20, 2026
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

This PR reduces false-positive “node_modules is stale” signals by allowing tooling to ignore Node.js version mismatches when computing the postinstall install-state hash.

Changes:

  • Add an ignoreNodeVersion option to computeState to optionally omit the running Node.js version from the computed state.
  • Extend installStateHash.ts’s CLI output mode to support a new --ignore-node-version flag and normalize the reported saved/current state accordingly.
  • Update the vscode-extras “npm up-to-date” feature to call installStateHash.ts with --ignore-node-version.

Reviewed changes

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

File Description
build/npm/installStateHash.ts Adds an opt-in path to ignore Node version in computed/printed state and introduces a CLI flag to drive it for external tooling.
.vscode/extensions/vscode-extras/src/npmUpToDateFeature.ts Passes the new CLI flag so the status indicator won’t trigger solely due to Node version changes.

@hediet hediet merged commit c9335c2 into main Mar 20, 2026
23 checks passed
@hediet hediet deleted the hediet/b/intellectual-jay branch March 20, 2026 21:04
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