MCPcopy Create free account
hub / github.com/Kong/insomnia / syncVCSLikeForWorkspace

Function syncVCSLikeForWorkspace

packages/insomnia/src/ui/sync-utils.ts:57–67  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

55 * `workspaceId`) — this binds one workspace's calls into that shape.
56 */
57export function syncVCSLikeForWorkspace(workspaceId: string): SyncVCSLike {
58 return {
59 hasBackendProject: () => window.main.sync.hasBackendProject(workspaceId),
60 push: options => window.main.sync.push(workspaceId, options),
61 stage: entries => window.main.sync.stage(workspaceId, entries),
62 status: candidates => window.main.sync.status(workspaceId, candidates),
63 switchAndCreateBackendProjectIfNotExist: (rootDocumentId, name) =>
64 window.main.sync.switchAndCreateBackendProjectIfNotExist(workspaceId, rootDocumentId, name),
65 takeSnapshot: name => window.main.sync.takeSnapshot(workspaceId, name),
66 };
67}
68
69/**
70 * ProjectLintRuleset is parented to the project, whose _id is not stable across machines,

Callers 2

clientActionFunction · 0.90
clientLoaderFunction · 0.90

Calls 6

hasBackendProjectMethod · 0.80
stageMethod · 0.80
takeSnapshotMethod · 0.80
pushMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected