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

Method getInfo

src/node/services/workspaceService.ts:4324–4331  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

4322 return { containerName, containerWorkspacePath, hostWorkspacePath };
4323 }
4324 async getInfo(workspaceId: string): Promise<FrontendWorkspaceMetadata | null> {
4325 const allMetadata = await this.config.getAllWorkspaceMetadata();
4326 const found = allMetadata.find((metadata) => metadata.id === workspaceId) ?? null;
4327 if (found && !this.shouldExposeWorkspaceMetadata(found)) {
4328 return null;
4329 }
4330 return this.enrichMaybeFrontendMetadata(found);
4331 }
4332
4333 private resolveHeartbeatWorkspaceEntry(
4334 workspaceId: string,

Callers 15

getDevcontainerInfoMethod · 0.95
stageAttachmentMethod · 0.95
truncateHistoryMethod · 0.95
replaceHistoryMethod · 0.95
getFileCompletionsMethod · 0.95
forkWorkspaceFunction · 0.80
createNewWorkspaceFunction · 0.80
handleNewCommandFunction · 0.80

Tested by

no test coverage detected