MCPcopy Index your code
hub / github.com/microsoft/vscode-languageserver-node / replyError

Function replyError

jsonrpc/src/main.ts:521–529  ·  view source on GitHub ↗
(error: ResponseError<any>, method: string, startTime: number)

Source from the content-addressed store, hash-verified

519 messageWriter.write(message);
520 }
521 function replyError(error: ResponseError<any>, method: string, startTime: number) {
522 let message: ResponseMessage = {
523 jsonrpc: version,
524 id: requestMessage.id,
525 error: error.toJson()
526 };
527 traceSendingResponse(message, method, startTime);
528 messageWriter.write(message);
529 }
530 function replySuccess(result: any, method: string, startTime: number) {
531 // The JSON RPC defines that a response must either have a result or an error
532 // So we can't treat undefined as a valid response result.

Callers 1

handleRequestFunction · 0.85

Calls 3

traceSendingResponseFunction · 0.85
toJsonMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected