We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 223a667 + 910adb9 commit e2a8e89Copy full SHA for e2a8e89
editors/code/src/commands/on_enter.ts
@@ -19,6 +19,12 @@ async function handleKeypress(ctx: Ctx) {
19
const change = await client.sendRequest<undefined | SourceChange>(
20
'rust-analyzer/onEnter',
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
+ }
28
);
29
if (!change) return false;
30
0 commit comments