Skip to content

Commit e2a8e89

Browse files
bors[bot]matklad
andauthored
Merge #3290
3290: Don't block onEnter if request fails r=matklad a=matklad closes #3286 bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 223a667 + 910adb9 commit e2a8e89

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

editors/code/src/commands/on_enter.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ async function handleKeypress(ctx: Ctx) {
1919
const change = await client.sendRequest<undefined | SourceChange>(
2020
'rust-analyzer/onEnter',
2121
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+
}
2228
);
2329
if (!change) return false;
2430

0 commit comments

Comments
 (0)