MCPcopy Create free account
hub / github.com/Snapchat/Valdi / destroyWorkspace

Method destroyWorkspace

compiler/companion/src/WorkspaceStore.ts:41–49  ·  view source on GitHub ↗
(workspaceId: number)

Source from the content-addressed store, hash-verified

39 nativeApiMinVersion,
40 );
41 let workspace: IWorkspace;
42 if (this.cacheDir) {
43 workspace = createCachingWorkspace(this.cacheDir, uncachedWorkspace, this.logger, nativeApiMinVersion);
44 } else {
45 workspace = uncachedWorkspace;
46 }
47
48 const workspaceId = ++this.sequence;
49 this.store.set(workspaceId, { uncachedWorkspace, activeWorkspace: workspace });
50
51 return { workspaceId, workspace };
52 }

Callers 2

destroyAllWorkspacesMethod · 0.95
addBaseEndpointsMethod · 0.80

Calls 3

getMethod · 0.65
deleteMethod · 0.65
destroyMethod · 0.65

Tested by

no test coverage detected