(options = {})
| 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; |
nothing calls this directly
no test coverage detected