Repository navigation
sessions: Remove unused Dev Container listing and workspace registration - #346551
Merged
Christof Marti (chrmarti) merged 1 commit intoNov 10, 2026
Merged
Conversation
Remotes management no longer lists Dev Containers (#346506), which left the shared-process Docker listing (listDevContainers) and the Dev Container service's addWorkspace, removeWorkspace and getWorkspaces without callers. Remove them; the channel helper keeps delivering sandbox support events unbuffered. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the cleanup of unused Dev Container discovery and workspace registration code.
No open issues 🎉
What changed in this PR
Removes unused Dev Container discovery and workspace registration code left behind by #346506. This cleanup preserves the stored connection format and existing session connection behavior.
Changes:
- Removes container listing APIs, discovery types, and the
docker psimplementation. - Simplifies the IPC channel while retaining unbuffered sandbox support events.
- Removes workspace registration APIs and tests specific to the deleted functionality.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/providers/remoteAgentHost/test/browser/devContainerAgentHostService.test.ts |
Removes the offline workspace registration test. |
src/vs/workbench/contrib/sessions/providers/remoteAgentHost/browser/devContainerAgentHostService.ts |
Removes workspace registration, removal, and listing methods. |
src/vs/workbench/contrib/sessions/common/devContainerAgentHostService.ts |
Removes workspace management methods from the service interface. |
src/vs/platform/agentHost/test/node/devContainerAgentHostService.test.ts |
Removes Docker discovery tests. |
src/vs/platform/agentHost/test/common/devContainerAgentHostIpc.test.ts |
Removes discovery cancellation coverage; retains sandbox event coverage. |
src/vs/platform/agentHost/node/devContainerAgentHostService.ts |
Removes the Docker-backed container listing implementation. |
src/vs/platform/agentHost/common/devContainerAgentHostIpc.ts |
Removes discovery-specific cancellation forwarding. |
src/vs/platform/agentHost/common/devContainerAgentHost.ts |
Removes the discovery type and listing API. |
Review effort: Balanced
Christof Marti (chrmarti)
marked this pull request as ready for review
November 10, 2026 08:19
Christof Marti (chrmarti)
enabled auto-merge (squash)
November 10, 2026 08:19
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Sandeep Somavarapu (@sandy081)Matched files:
Ladislau Szomoru (@lszomoru)Matched files:
|
Benjamin Christopher Simmonds (benibenj)
approved these changes
Nov 10, 2026
Christof Marti (chrmarti)
deleted the
chrmarti/devcontainer-unused-code
branch
November 10, 2026 08:20
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.
Remotes management no longer lists Dev Containers (#346506), which left the code that supported that list without callers. This removes it:
IDevContainerAgentHostMainService.listDevContainers,IDiscoveredDevContainer, and the shared-process implementation that listed containers withdocker ps.createDevContainerAgentHostChannel. The helper still creates the channel with unbuffered sandbox support events, which its remaining test covers.IDevContainerAgentHostService.addWorkspace,removeWorkspaceandgetWorkspaces, which registered, forgot and listed Dev Container locations for that list.The tests that only covered these APIs are removed. Persisted Dev Container connections keep their stored format, so older builds can still read them.
No behavior change.
How to test
Start, reload and reconnect a Dev Container session in the Agents window; it should behave as before. Manage Remote Environments shows no Dev Containers group, as before.
Validation
pnpm run typecheck-client: passedpnpm run eslint <changed files>: passed./scripts/test.sh --run src/vs/platform/agentHost/test/common/devContainerAgentHostIpc.test.ts --run src/vs/platform/agentHost/test/node/devContainerAgentHostService.test.ts --run src/vs/workbench/contrib/sessions/providers/remoteAgentHost/test/browser/devContainerAgentHostService.test.ts: 111 passing