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

Method getEntry

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

Source from the content-addressed store, hash-verified

54 destroyWorkspace(workspaceId: number): boolean {
55 const entry = this.store.get(workspaceId);
56 if (!entry) {
57 return false;
58 }
59 this.store.delete(workspaceId);
60 entry.activeWorkspace.destroy();
61 return true;
62 }
63
64 destroyAllWorkspaces(): void {
65 const allWorkspaceIds = [...this.store.keys()];
66 allWorkspaceIds.forEach((workspaceId) => this.destroyWorkspace(workspaceId));
67 }
68
69 private getEntry(workspaceId: number): StoreEntry {

Callers 2

getWorkspaceMethod · 0.95
getUncachedWorkspaceMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected