diff --git a/editors/code/src/commands/on_enter.ts b/editors/code/src/commands/on_enter.ts index 25eaebcbecc..27ae8ec2326 100644 --- a/editors/code/src/commands/on_enter.ts +++ b/editors/code/src/commands/on_enter.ts @@ -19,6 +19,12 @@ async function handleKeypress(ctx: Ctx) { const change = await client.sendRequest( 'rust-analyzer/onEnter', request, + ).catch( + (_error: any) => { + // FIXME: switch to the more modern (?) typed request infrastructure + // client.logFailedRequest(OnEnterRequest.type, error); + return Promise.resolve(null); + } ); if (!change) return false;