MCPcopy
hub / github.com/anomalyco/opencode / shouldShowFileTree

Function shouldShowFileTree

packages/app/src/pages/session/helpers.ts:23–25  ·  view source on GitHub ↗
(input: { visible: boolean; opened: boolean })

Source from the content-addressed store, hash-verified

21export const getSessionKey = (dir: string | undefined, id: string | undefined) => `${dir ?? ""}${id ? `/${id}` : ""}`
22
23export function shouldShowFileTree(input: { visible: boolean; opened: boolean }) {
24 return input.opened && input.visible
25}
26
27export const createSessionTabs = (input: TabsInput) => {
28 const review = input.review ?? (() => false)

Callers 3

PageFunction · 0.90
helpers.test.tsFile · 0.90
SessionSidePanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected