mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +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
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue