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

Method syncWorkspaces

src/browser/stores/PRStatusStore.ts:226–240  ·  view source on GitHub ↗
(metadata: Map<string, FrontendWorkspaceMetadata>)

Source from the content-addressed store, hash-verified

224 }
225
226 syncWorkspaces(metadata: Map<string, FrontendWorkspaceMetadata>): void {
227 if (!this.isActive && metadata.size > 0) {
228 this.isActive = true;
229 }
230
231 this.workspaceMetadata = metadata;
232 for (const [id, unsubscribe] of this.runtimeRetryUnsubscribers) {
233 if (!metadata.has(id)) {
234 unsubscribe();
235 this.runtimeRetryUnsubscribers.delete(id);
236 }
237 }
238 this.refreshController.bindListeners();
239 this.refreshController.requestImmediate();
240 }
241
242 // ─────────────────────────────────────────────────────────────────────────────
243 // Workspace-based PR detection (primary mode)

Callers 9

AppLoaderInnerFunction · 0.45
WorkflowTaskActionsStoryFunction · 0.45
WorkspaceProviderFunction · 0.45

Calls 4

bindListenersMethod · 0.80
requestImmediateMethod · 0.80
hasMethod · 0.45
deleteMethod · 0.45

Tested by 1