(message: NotificationMessage)
| 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) { |
no test coverage detected