( tabs: Tab[], tabId: string, partial: Partial<Tab>, )
| 275 | } |
| 276 | |
| 277 | export 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 |
| 286 | export function shouldUseCachedSchema( |
no outgoing calls
no test coverage detected