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

Function traceReceivedNotification

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

Source from the content-addressed store, hash-verified

766 }
767
768 function traceReceivedNotification(message: NotificationMessage): void {
769 if (trace === Trace.Off || !tracer || message.method === LogTraceNotification.type.method) {
770 return;
771 }
772 let data: string | undefined = undefined;
773 if (trace === Trace.Verbose) {
774 if (message.params) {
775 data = `Params: ${JSON.stringify(message.params, null, 4)}\n\n`;
776 } else {
777 data = 'No parameters provided.\n\n';
778 }
779 }
780 tracer.log(`Received notification '${message.method}'.`, data);
781 }
782
783 function traceReceivedResponse(message: ResponseMessage, responsePromise: ResponsePromise): void {
784 if (trace === Trace.Off || !tracer) {

Callers 1

handleNotificationFunction · 0.85

Calls 1

logMethod · 0.65

Tested by

no test coverage detected