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

Function canvasProviderSessionID

go/session.go:318–334  ·  view source on GitHub ↗
(request any)

Source from the content-addressed store, hash-verified

316}
317
318func canvasProviderSessionID(request any) string {
319 switch req := request.(type) {
320 case *rpc.CanvasProviderCloseRequest:
321 if req != nil {
322 return req.SessionID
323 }
324 case *rpc.CanvasProviderInvokeActionRequest:
325 if req != nil {
326 return req.SessionID
327 }
328 case *rpc.CanvasProviderOpenRequest:
329 if req != nil {
330 return req.SessionID
331 }
332 }
333 return ""
334}
335
336func canvasJSONRPCError(cerr *CanvasError) *jsonrpc2.Error {
337 data, _ := json.Marshal(map[string]string{

Callers 3

CloseMethod · 0.85
InvokeMethod · 0.85
OpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…