truncateForLog truncates raw JSON for logging purposes to avoid overly verbose logs
(data json.RawMessage)
| 1691 | |
| 1692 | // truncateForLog truncates raw JSON for logging purposes to avoid overly verbose logs |
| 1693 | func truncateForLog(data json.RawMessage) string { |
| 1694 | const maxLen = 200 |
| 1695 | s := string(data) |
| 1696 | if len(s) > maxLen { |
| 1697 | return s[:maxLen] + "..." |
| 1698 | } |
| 1699 | return s |
| 1700 | } |
| 1701 | |
| 1702 | // handleSemanticTokensFull handles textDocument/semanticTokens/full requests. |
| 1703 | // It tokenizes the document and returns LSP-encoded semantic token data. |
no outgoing calls
no test coverage detected