aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/src/commands/on_enter.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/editors/code/src/commands/on_enter.ts b/editors/code/src/commands/on_enter.ts
index 25eaebcbe..27ae8ec23 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) {
19 const change = await client.sendRequest<undefined | SourceChange>( 19 const change = await client.sendRequest<undefined | SourceChange>(
20 'rust-analyzer/onEnter', 20 'rust-analyzer/onEnter',
21 request, 21 request,
22 ).catch(
23 (_error: any) => {
24 // FIXME: switch to the more modern (?) typed request infrastructure
25 // client.logFailedRequest(OnEnterRequest.type, error);
26 return Promise.resolve(null);
27 }
22 ); 28 );
23 if (!change) return false; 29 if (!change) return false;
24 30