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

Function handleWidgetsBarContextMenu

frontend/app/workspace/widgets.tsx:437–456  ·  view source on GitHub ↗
(e: React.MouseEvent)

Source from the content-addressed store, hash-verified

435 }, [widgets, checkModeNeeded]);
436
437 const handleWidgetsBarContextMenu = (e: React.MouseEvent) => {
438 e.preventDefault();
439 const menu: ContextMenuItem[] = [
440 {
441 label: "Edit widgets.json",
442 click: () => {
443 fireAndForget(async () => {
444 const blockDef: BlockDef = {
445 meta: {
446 view: "waveconfig",
447 file: "widgets.json",
448 },
449 };
450 await env.createBlock(blockDef, false, true);
451 });
452 },
453 },
454 ];
455 env.showContextMenu(menu, e);
456 };
457
458 return (
459 <>

Callers

nothing calls this directly

Calls 2

fireAndForgetFunction · 0.90
showContextMenuMethod · 0.80

Tested by

no test coverage detected