fix(vscode): Fixing Syntax Issue Causing Local Build Error#8976
Merged
lambrianmsft merged 1 commit intoAzure:mainfrom Mar 30, 2026
Merged
fix(vscode): Fixing Syntax Issue Causing Local Build Error#8976lambrianmsft merged 1 commit intoAzure:mainfrom
lambrianmsft merged 1 commit intoAzure:mainfrom
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | Use imperative tense and optionally include filename. |
| Commit Type | ✅ | No change needed. |
| Risk Level | ✅ | No change needed (low). |
| What & Why | ✅ | Expand slightly to name file and root cause. |
| Impact of Change | Specify developer/build impact instead of N/A. |
|
| Test Plan | ✅ | Add short manual steps and CI result if available. |
| Contributors | Optional: credit contributors if applicable. | |
| Screenshots/Videos | ✅ | Not applicable. |
Final notes: This PR passes the PR title/body checklist. The advised risk level is "low" and matches the PR's label. Please consider the small suggested edits: adjust the PR title to imperative tense and mention the file, expand "What & Why" with the root cause and file path, fill out the Impact section to indicate who (developers/builds) is affected, and add brief manual test steps and CI confirmation. After applying those minor improvements, this PR is ready to merge. Thank you!
Last updated: Fri, 27 Mar 2026 22:52:18 GMT
Eric-B-Wu
approved these changes
Mar 27, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a TypeScript syntax incompatibility in the VS Code extension build path by replacing optional-chaining element access with a more broadly supported runtime check when extracting Foundry agent version data.
Changes:
- Updated
extractVersionsDatato avoidresult?.['data']syntax. - Preserved existing behavior by still safely returning
[]when the response shape doesn’t match expected formats.
preetriti1
approved these changes
Mar 27, 2026
takyyon
approved these changes
Mar 27, 2026
This was referenced Mar 28, 2026
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.
Commit Type
Risk Level
What & Why
This fixes an issue with building the vscode extension locally. The syntax is currently not allowed as is.
Impact of Change
N/A
N/A
System can build as expected now
Test Plan
Contributors
Screenshots/Videos