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

Function show

src/components/referencesPanel/index.js:218–251  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

216 }
217
218 function show(options = {}) {
219 if (currentPanel && currentPanel !== panelInstance) {
220 currentPanel.hide();
221 }
222 currentPanel = panelInstance;
223
224 state.symbolName = options.symbolName || "";
225 state.references = [];
226 state.loading = true;
227 state.expanded = false;
228 state.collapsedFiles.clear();
229 state.flatItems = [];
230
231 clearHighlightCache();
232
233 setTitle(state.symbolName);
234 setSubtitle("Searching...");
235 renderLoading();
236
237 document.body.append($mask, $panel);
238
239 requestAnimationFrame(() => {
240 $mask.classList.add("visible");
241 $panel.classList.add("visible");
242 $panel.classList.remove("expanded");
243 });
244
245 state.visible = true;
246
247 actionStack.push({
248 id: "references-panel",
249 action: hide,
250 });
251 }
252
253 function hide() {
254 if (!state.visible) return;

Callers

nothing calls this directly

Calls 9

clearHighlightCacheFunction · 0.90
appendMethod · 0.80
addMethod · 0.80
setTitleFunction · 0.70
setSubtitleFunction · 0.70
renderLoadingFunction · 0.70
hideMethod · 0.45
clearMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected