MCPcopy Index your code
hub / github.com/github/copilot-sdk / handle_canvas_close

Function handle_canvas_close

python/copilot/generated/rpc.py:27040–27045  ·  view source on GitHub ↗
(params: dict)

Source from the content-addressed store, hash-verified

27038 return result.to_dict()
27039 client.set_request_handler("canvas.open", handle_canvas_open)
27040 async def handle_canvas_close(params: dict) -> dict | None:
27041 request = CanvasProviderCloseRequest.from_dict(params)
27042 handler = get_handlers(request.session_id).canvas
27043 if handler is None: raise RuntimeError(f"No canvas handler registered for session: {request.session_id}")
27044 await handler.close(request)
27045 return None
27046 client.set_request_handler("canvas.close", handle_canvas_close)
27047 async def handle_canvas_action_invoke(params: dict) -> dict | None:
27048 request = CanvasProviderInvokeActionRequest.from_dict(params)

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
from_dictMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…