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

Function isResponseMessage

jsonrpc/src/messages.ts:374–377  ·  view source on GitHub ↗
(message: Message | undefined)

Source from the content-addressed store, hash-verified

372 * Tests if the given message is a response message
373 */
374export function isResponseMessage(message: Message | undefined): message is ResponseMessage {
375 let candidate = <ResponseMessage>message;
376 return candidate && (candidate.result !== void 0 || !!candidate.error) && (is.string(candidate.id) || is.number(candidate.id) || candidate.id === null);
377}

Callers 2

addMessageToQueueFunction · 0.90
processMessageQueueFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected