MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getVisibleItems

Function getVisibleItems

src/components/referencesPanel/referencesTab.js:48–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 $container.append($header, $listContainer);
47
48 function getVisibleItems() {
49 return flatItems.filter((item) => {
50 if (item.type === "file-header") return true;
51 return !collapsedFiles.has(item.uri);
52 });
53 }
54
55 function toggleFile(uri) {
56 if (collapsedFiles.has(uri)) {

Callers 1

renderListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected