MCPcopy
hub / github.com/coder/mux / openWorkspaceFromView

Method openWorkspaceFromView

vscode/src/extension.ts:1758–1773  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

1756 }
1757
1758 private async openWorkspaceFromView(workspaceId: string): Promise<void> {
1759 assert(typeof workspaceId === "string", "openWorkspaceFromView requires workspaceId");
1760
1761 const workspace = this.workspacesById.get(workspaceId);
1762 if (!workspace) {
1763 this.postMessage({
1764 type: "uiNotice",
1765 level: "error",
1766 message: "Workspace not found. Refresh and try again.",
1767 });
1768 return;
1769 }
1770
1771 await setPendingAutoSelectWorkspace(this.context, workspace);
1772 await openWorkspace(workspace);
1773 }
1774}
1775
1776async function maybeAutoRevealChatViewFromPendingSelection(

Callers 1

onWebviewMessageMethod · 0.95

Calls 5

postMessageMethod · 0.95
openWorkspaceFunction · 0.90
getMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected