MCPcopy
hub / github.com/microsoft/vscode-languageserver-node / traceSendNotification

Function traceSendNotification

jsonrpc/src/main.ts:723–736  ·  view source on GitHub ↗
(message: NotificationMessage)

Source from the content-addressed store, hash-verified

721 }
722
723 function traceSendNotification(message: NotificationMessage): void {
724 if (trace === Trace.Off || !tracer) {
725 return;
726 }
727 let data: string | undefined = undefined;
728 if (trace === Trace.Verbose) {
729 if (message.params) {
730 data = `Params: ${JSON.stringify(message.params, null, 4)}\n\n`;
731 } else {
732 data = 'No parameters provided.\n\n';
733 }
734 }
735 tracer.log(`Sending notification '${message.method}'.`, data);
736 }
737
738 function traceSendingResponse(message: ResponseMessage, method: string, startTime: number): void {
739 if (trace === Trace.Off || !tracer) {

Callers 1

_createMessageConnectionFunction · 0.85

Calls 1

logMethod · 0.65

Tested by

no test coverage detected