MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / isPathOpen

Function isPathOpen

frontend/preview/preview-contextmenu.tsx:66–71  ·  view source on GitHub ↗
(openPath: number[], path: number[])

Source from the content-addressed store, hash-verified

64}
65
66function isPathOpen(openPath: number[], path: number[]): boolean {
67 if (path.length > openPath.length) {
68 return false;
69 }
70 return path.every((segment, index) => openPath[index] === segment);
71}
72
73function getVisibleItems(items: ContextMenuItem[]): ContextMenuItem[] {
74 return items.filter((item) => item.visible !== false);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected