Detect outdated Dev Proxy config files and offer Copilot-powered upgrade#349
Merged
garrytrinder merged 5 commits intomainfrom Mar 2, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Detect and upgrade outdated Dev Proxy config files on version mismatch
Detect outdated Dev Proxy config files and offer Copilot-powered upgrade
Feb 27, 2026
Member
|
@copilot update this PR to include changelog and readme updates following the guidelines in AGENTS.md |
Contributor
Author
Added in a86e1e9:
|
a86e1e9 to
66015c2
Compare
Add version mismatch detection for Dev Proxy config files in the workspace. When the schema version in config files doesn't match the installed Dev Proxy version, show a warning notification offering to upgrade using Copilot Chat. - Add extractVersionFromSchemaUrl() to extract version from schema URLs - Add findOutdatedConfigFiles() to scan workspace for outdated configs - Add upgradeConfigs command that opens Copilot Chat with upgrade prompt - Add handleOutdatedConfigFilesNotification() for the warning UI - Add tests for version extraction and command registration Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com>
- Use async vscode.workspace.fs.readFile instead of sync fs.readFileSync - Add type guard for parse result before casting to ObjectNode - Extract getNormalizedVersion() as shared utility to reduce duplication - Add regex pattern documentation and named constant - Check for workbench.action.chat.open command availability before invoking Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com>
- CHANGELOG: Add notification and upgrade-configs command entries under [1.13.0] - README: Add Upgrade config files command to Commands table - README: Add Notifications section with outdated config files description Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com>
66015c2 to
c447bb5
Compare
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.
upgradeConfigscommand ID tosrc/constants.tsextractVersionFromSchemaUrl()utility to extract version from schema URLsfindOutdatedConfigFiles()to scan workspace for outdated config filessrc/commands/upgrade-config.tswith Copilot Chat integrationsrc/commands/index.tsgetNormalizedVersion()shared utility insrc/detect.tssrc/notifications.tssrc/extension.tspackage.jsonOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.