MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / scrollToId

Function scrollToId

frontend/app/treeview/treeview.tsx:268–274  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

266 };
267
268 const scrollToId = (id: string) => {
269 const index = idToIndex.get(id);
270 if (index == null) {
271 return;
272 }
273 virtualizer.scrollToIndex(index, { align: "auto" });
274 };
275
276 useImperativeHandle(
277 ref,

Callers 3

toggleExpandFunction · 0.85
selectVisibleNodeAtFunction · 0.85
onKeyDownFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected