MCPcopy
hub / github.com/microsoft/data-formulator / updateDisplayName

Function updateDisplayName

src/app/workspaceDB.ts:150–162  ·  view source on GitHub ↗

Update only the displayName (used by auto-name, manual rename).

(id: string, displayName: string)

Source from the content-addressed store, hash-verified

148
149 /** Update only the displayName (used by auto-name, manual rename). */
150 async updateDisplayName(id: string, displayName: string): Promise<void> {
151 const db = await openDB();
152 try {
153 const store = txStore(db, 'readwrite');
154 const existing: WorkspaceEntry | undefined = await reqToPromise(store.get(id));
155 if (!existing) return;
156 existing.displayName = displayName;
157 existing.updatedAt = new Date().toISOString();
158 await reqToPromise(store.put(existing));
159 } finally {
160 db.close();
161 }
162 },
163
164 /** Check if a workspace exists. */
165 async exists(id: string): Promise<boolean> {

Callers

nothing calls this directly

Calls 5

openDBFunction · 0.85
txStoreFunction · 0.85
reqToPromiseFunction · 0.85
getMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected