a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
99
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(lex-cli): reply with MethodNotFound on unknown LSP messages

Mary 9fc9a1db 21b08d12

+3 -1
+3 -1
packages/lexicons/lex-cli/src/lsp-client.ts
··· 191 191 continue; 192 192 } 193 193 194 - // dispatch responses to pending requests, ignore everything else 195 194 if (message.id != null) { 196 195 const entry = pending.get(message.id); 197 196 if (entry) { ··· 202 201 } else { 203 202 entry.resolve(message.result); 204 203 } 204 + } else if (message.method != null) { 205 + // server-initiated request — reply with MethodNotFound so it doesn't hang 206 + sendMessage({ jsonrpc: '2.0', id: message.id, error: { code: -32601, message: `method not found` } }); 205 207 } 206 208 } 207 209 }