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

Function isNotificationMessage

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

Source from the content-addressed store, hash-verified

364 * Tests if the given message is a notification message
365 */
366export function isNotificationMessage(message: Message | undefined): message is NotificationMessage {
367 let candidate = <NotificationMessage>message;
368 return candidate && is.string(candidate.method) && (<any>message).id === void 0;
369}
370
371/**
372 * Tests if the given message is a response message

Callers 2

processMessageQueueFunction · 0.90
callbackFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected