Repository navigation
Rename agent workspace api proposal - #350351
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The removed declaration breaks type-checking in the built-in Git extension because three accesses still reference workspace.isAgentSessionsWorkspace instead of workspace.isAgentManaged.
No open issues 🎉
What changed in this PR
Renames the proposed workspace API to workspace.isAgentManaged, clarifying how extensions can identify workspaces managed for agent sessions as part of #315776.
Changes:
- Updates the API declaration and documentation while retaining the old runtime getter with a deprecation report.
- Migrates Git and Copilot consumers to the new property name.
- Updates test mocks and adds an API test for runtime backward compatibility.
| File | Description |
|---|---|
src/vscode-dts/vscode.proposed.agentSessionsWorkspace.d.ts |
Renames the property and clarifies workspace semantics. |
src/vs/workbench/api/common/extHost.api.impl.ts |
Adds the new getter and preserves the deprecated runtime alias. |
extensions/vscode-api-tests/src/singlefolder-tests/workspace.test.ts |
Tests both property names in a regular workspace. |
extensions/git/src/model.ts |
Updates the repository-opening check. |
extensions/git/src/fileSystemProvider.ts |
Updates on-demand repository opening. |
extensions/git/src/artifactProvider.ts |
Updates artifact-provider initialization gating. |
extensions/copilot/src/platform/telemetry/vscode-node/test/microsoftExperimentationService.spec.ts |
Renames the workspace mock property. |
extensions/copilot/src/platform/telemetry/vscode-node/microsoftExperimentationService.ts |
Updates window-kind filter checks. |
extensions/copilot/src/platform/telemetry/test/node/assignmentFilters.spec.ts |
Updates the assignment-filter mock. |
extensions/copilot/src/extension/prompt/vscode-node/gitCommitMessageServiceImpl.ts |
Updates commit-message progress handling. |
extensions/copilot/src/extension/chronicle/vscode-node/sessionSyncStatus.ts |
Updates sync-status visibility gating. |
extensions/copilot/src/extension/chatSessions/vscode-node/test/copilotCloudSessionsProvider.spec.ts |
Updates workspace mocks and parameterized tests. |
extensions/copilot/src/extension/chatSessions/vscode-node/test/copilotCLIChatSessions.spec.ts |
Updates the CLI session workspace shim. |
extensions/copilot/src/extension/chatSessions/vscode-node/test/copilotCLIChatSessionParticipant.spec.ts |
Updates the participant test mock. |
extensions/copilot/src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts |
Updates cloud discovery, logging, and badge checks. |
extensions/copilot/src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts |
Updates repository-label visibility checks. |
extensions/copilot/src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts |
Updates repository-badge visibility checks. |
extensions/copilot/src/extension/chatSessions/vscode-node/chatSessionWorktreeServiceImpl.ts |
Updates worktree-change and comparison checks. |
extensions/copilot/src/extension/chatSessions/vscode-node/chatSessions.ts |
Updates session-controller configuration selection. |
extensions/copilot/src/extension/chatSessions/vscode-node/agentSessionsWorkspace.ts |
Maps the internal service to the renamed API. |
extensions/copilot/src/extension/chatInputNotification/vscode-node/test/byokUtilityModel.contribution.spec.ts |
Updates notification test mocks. |
extensions/copilot/src/extension/chatInputNotification/vscode-node/byokUtilityModel.contribution.ts |
Updates Agents window notification suppression. |
Review effort: Balanced
Alex Ross (alexr00)
marked this pull request as ready for review
November 26, 2026 17:11
Alex Ross (alexr00)
enabled auto-merge
November 26, 2026 17:12
Ladislau Szomoru (lszomoru)
approved these changes
Nov 26, 2026
Alexandru Dima (alexdima)
approved these changes
Nov 26, 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.
Part of #315776