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

Function commitSelection

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

Source from the content-addressed store, hash-verified

257 });
258
259 const commitSelection = (id: string) => {
260 const node = nodesById.get(id);
261 if (node == null) {
262 return;
263 }
264 setSelectedId(id);
265 onSelectionChange?.(id, node);
266 };
267
268 const scrollToId = (id: string) => {
269 const index = idToIndex.get(id);

Callers 3

selectVisibleNodeAtFunction · 0.85
onKeyDownFunction · 0.85
treeview.tsxFile · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected