MCPcopy
hub / github.com/coder/mux / setFocusedTabset

Function setFocusedTabset

src/browser/utils/rightSidebarLayout.ts:271–277  ·  view source on GitHub ↗
(
  state: RightSidebarLayoutState,
  tabsetId: string
)

Source from the content-addressed store, hash-verified

269}
270
271export function setFocusedTabset(
272 state: RightSidebarLayoutState,
273 tabsetId: string
274): RightSidebarLayoutState {
275 if (state.focusedTabsetId === tabsetId) return state;
276 return { ...state, focusedTabsetId: tabsetId };
277}
278
279export function selectTabInTabset(
280 state: RightSidebarLayoutState,

Callers 5

buildCoreSourcesFunction · 0.90
setFocusedFunction · 0.90
selectTabFunction · 0.90
selectTabByIndexFunction · 0.85
selectOrAddTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected