Skip to content

Auto-sync engines.vscode with @types/vscode version changes#19

Merged
unknowIfGuestInDream merged 5 commits intomasterfrom
copilot/sub-pr-18
Feb 5, 2026
Merged

Auto-sync engines.vscode with @types/vscode version changes#19
unknowIfGuestInDream merged 5 commits intomasterfrom
copilot/sub-pr-18

Conversation

Copy link
Contributor

Copilot AI commented Feb 5, 2026

Dependabot updates @types/vscode but leaves engines.vscode mismatched, causing compilation failures when new APIs are used.

Changes

  • Added .github/workflows/sync-vscode-engine.yml: Workflow triggers on dependabot PRs that update @types/vscode, extracts major.minor version, updates engines.vscode field with patch version fixed to 0, and commits the change automatically

Workflow behavior

# Triggers on dependabot PRs that modify package.json
# Detects @types/vscode updates from PR title
# Extracts version: 1.109.0 → engines.vscode: ^1.109.0 (patch always set to 0)
# Only commits if engines.vscode needs updating

Future dependabot PRs updating @types/vscode will automatically receive a follow-up commit keeping both fields in sync, with engines.vscode matching the major.minor version of @types/vscode and patch version always set to 0.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

dependabot bot and others added 2 commits February 5, 2026 19:24
Bumps [@types/vscode](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/vscode) from 1.108.1 to 1.109.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/vscode)

---
updated-dependencies:
- dependency-name: "@types/vscode"
  dependency-version: 1.109.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 5, 2026
Copilot AI changed the title [WIP] Update dev dependency @types/vscode to version 1.109.0 Auto-sync engines.vscode with @types/vscode version changes Feb 5, 2026
@unknowIfGuestInDream
Copy link
Contributor

@copilot 当前pr的package.json改动回滚
engines.vscode 期望major和minor值与@types/vscode 的 major和minor一样,小版本固定为0

Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
@pull-request-size pull-request-size bot added size/M and removed size/L labels Feb 5, 2026
Copy link
Contributor Author

Copilot AI commented Feb 5, 2026

@copilot 当前pr的package.json改动回滚
engines.vscode 期望major和minor值与@types/vscode 的 major和minor一样,小版本固定为0

已回滚 package.json 的改动。工作流已经配置为:从 @types/vscode 版本(如 1.109.0)中提取 major.minor(1.109),然后设置 engines.vscode 为 ^{major}.{minor}.0(即 ^1.109.0),patch 版本固定为 0。

相关提交: 10c2372

@unknowIfGuestInDream unknowIfGuestInDream changed the base branch from dependabot/npm_and_yarn/types/vscode-1.109.0 to master February 5, 2026 11:37
@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 5, 2026
@unknowIfGuestInDream unknowIfGuestInDream merged commit dc1d749 into master Feb 5, 2026
1 check passed
@unknowIfGuestInDream unknowIfGuestInDream deleted the copilot/sub-pr-18 branch February 5, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants