mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
Merge #3290
3290: Don't block onEnter if request fails r=matklad a=matklad closes #3286 bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
e2a8e891c1
@ -19,6 +19,12 @@ async function handleKeypress(ctx: Ctx) {
|
||||
const change = await client.sendRequest<undefined | SourceChange>(
|
||||
'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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user