mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
parent
b12cbd6062
commit
910adb9dc7
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