MCPcopy Create free account
hub / github.com/experdot/pointer / commitWorkspaceContext

Function commitWorkspaceContext

src/renderer/src/services/workspaceService.ts:39–49  ·  view source on GitHub ↗
(
  accountId: string,
  workspacePath: string | null,
  extraApprovedPaths: string[] = []
)

Source from the content-addressed store, hash-verified

37}
38
39async function commitWorkspaceContext(
40 accountId: string,
41 workspacePath: string | null,
42 extraApprovedPaths: string[] = []
43): Promise<void> {
44 await persistence.database.commitContext({
45 accountId,
46 workspacePath,
47 approvedWorkspacePaths: getApprovedWorkspacePaths(extraApprovedPaths)
48 })
49}
50
51export class WorkspaceRepairRequiredError extends Error {
52 constructor(

Callers 4

switchWorkspaceFunction · 0.85
openFolderAsWorkspaceFunction · 0.85
deleteWorkspaceFunction · 0.85

Calls 2

commitContextMethod · 0.80

Tested by

no test coverage detected