MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / cleanMessage

Method cleanMessage

src/cm/lsp/clientManager.ts:705–712  ·  view source on GitHub ↗
(msg: string, maxLen = 150)

Source from the content-addressed store, hash-verified

703
704 // Helper to clean and truncate message for notifications
705 const cleanMessage = (msg: string, maxLen = 150): string => {
706 // Take only first line
707 let cleaned = msg.split("\n")[0].trim();
708 if (cleaned.length > maxLen) {
709 cleaned = cleaned.slice(0, maxLen - 3) + "...";
710 }
711 return cleaned;
712 };
713
714 // Use notifications for errors and warnings
715 if (type === 1 || type === 2) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected