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

Function readRightSidebarLayout

src/browser/utils/rightSidebarTabFocus.ts:15–22  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

13}
14
15export function readRightSidebarLayout(workspaceId: string): RightSidebarLayoutState {
16 const fallback = getRightSidebarTabFallback();
17 const raw = readPersistedState(
18 getRightSidebarLayoutKey(workspaceId),
19 getDefaultRightSidebarLayoutState(fallback)
20 );
21 return parseRightSidebarLayoutState(raw, fallback);
22}
23
24export function updateRightSidebarLayout(
25 workspaceId: string,

Callers 2

buildToggleTabCommandFunction · 0.90

Calls 5

readPersistedStateFunction · 0.90
getRightSidebarLayoutKeyFunction · 0.90

Tested by

no test coverage detected