MCPcopy Create free account
hub / github.com/TabularisDB/tabularis / updateTabInList

Function updateTabInList

src/utils/editor.ts:277–283  ·  view source on GitHub ↗
(
  tabs: Tab[],
  tabId: string,
  partial: Partial<Tab>,
)

Source from the content-addressed store, hash-verified

275}
276
277export function updateTabInList(
278 tabs: Tab[],
279 tabId: string,
280 partial: Partial<Tab>,
281): Tab[] {
282 return tabs.map((t) => (t.id === tabId ? { ...t, ...partial } : t));
283}
284
285// Schema cache utilities
286export function shouldUseCachedSchema(

Callers 2

EditorProviderFunction · 0.90
editor.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected