You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every Compile task on main fails with tsgo TS2300 duplicate-identifier errors, cascading to all downstream Test/Publish/Verify jobs across the Linux, macOS, Windows and Quality stages:
copilotChatSessionsProvider.ts and its test each imported UNIFIED_WORKSPACE_PICKER_SETTING from ../../../chat/common/constants.js twice — once mid-import-block and once appended at the end of the import list. TypeScript rejects a symbol imported twice into the same module scope (TS2300), so compilation aborts before any task can run.
How the fix works
Removes the redundant second import { UNIFIED_WORKSPACE_PICKER_SETTING } line in each of the two files, keeping a single import. The symbol is still available at all its use sites, so behavior is unchanged and typechecking passes.
Rollback evaluation
Recommendation: Do not roll back. Culprit: commit 291338d45a319004f26078f6b505745d62202f62 / PR #334674. A one-line duplicate-import deletion in each file lands faster and more safely than reverting a large model-picker PR touching many files. Owners to consult: @lramos15
Validation
Verified by source inspection that only one import of the symbol remains in each file (grep count = 1). Full tsgo/compile validation could not be run in this environment; the change is a mechanical duplicate-import removal that directly resolves the TS2300 errors.
Risk
Minimal — removes redundant imports only; no logic, telemetry, or runtime behavior changes.
Original error: ERR_API: [2026-09-05T02:47:54.697Z] create pull request in microsoft/vscode failed (attempt 1)
Original error: Validation Failed: {"resource":"PullRequest","code":"custom","field":"fork_collab","message":"fork_collab Fork collab can't be granted by someone without permission"} - https://docs.github.com/rest/pulls/pulls#create-a-pull-request
Retryable: false
Suggestion: This error cannot be resolved by retrying. Please check the error details and fix the underlying issue.
To create the pull request manually:
gh pr create --title "fix: remove duplicate UNIFIED_WORKSPACE_PICKER_SETTING import (build fix for vscode-engineering#3803)" --base main --head vscodebot-pr:fix/dup-unified-workspace-picker-import-7d2b761921876ea3 --repo microsoft/vscode
Build failure
Every Compile task on
mainfails withtsgoTS2300 duplicate-identifier errors, cascading to all downstream Test/Publish/Verify jobs across the Linux, macOS, Windows and Quality stages:Root cause
copilotChatSessionsProvider.tsand its test each importedUNIFIED_WORKSPACE_PICKER_SETTINGfrom../../../chat/common/constants.jstwice — once mid-import-block and once appended at the end of the import list. TypeScript rejects a symbol imported twice into the same module scope (TS2300), so compilation aborts before any task can run.How the fix works
Removes the redundant second
import { UNIFIED_WORKSPACE_PICKER_SETTING }line in each of the two files, keeping a single import. The symbol is still available at all its use sites, so behavior is unchanged and typechecking passes.Rollback evaluation
Recommendation: Do not roll back. Culprit: commit
291338d45a319004f26078f6b505745d62202f62/ PR #334674. A one-line duplicate-import deletion in each file lands faster and more safely than reverting a large model-picker PR touching many files. Owners to consult:@lramos15Validation
Verified by source inspection that only one import of the symbol remains in each file (
grepcount = 1). Fulltsgo/compile validation could not be run in this environment; the change is a mechanical duplicate-import removal that directly resolves the TS2300 errors.Risk
Minimal — removes redundant imports only; no logic, telemetry, or runtime behavior changes.
Recommended reviewer
Recommended owner:
@lramos15Fixes microsoft/vscode-engineering#3803
Note
This was originally intended as a pull request, but PR creation failed. The changes have been pushed to the branch
fix/dup-unified-workspace-picker-import-7d2b761921876ea3.Original error: ERR_API: [2026-09-05T02:47:54.697Z] create pull request in microsoft/vscode failed (attempt 1)
Original error: Validation Failed: {"resource":"PullRequest","code":"custom","field":"fork_collab","message":"fork_collab Fork collab can't be granted by someone without permission"} - https://docs.github.com/rest/pulls/pulls#create-a-pull-request
Retryable: false
Suggestion: This error cannot be resolved by retrying. Please check the error details and fix the underlying issue.
To create the pull request manually:
gh pr create --title "fix: remove duplicate UNIFIED_WORKSPACE_PICKER_SETTING import (build fix for vscode-engineering#3803)" --base main --head vscodebot-pr:fix/dup-unified-workspace-picker-import-7d2b761921876ea3 --repo microsoft/vscodeShow patch preview (41 of 41 lines)