mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 20:35:09 +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>(
|
const change = await client.sendRequest<undefined | SourceChange>(
|
||||||
'rust-analyzer/onEnter',
|
'rust-analyzer/onEnter',
|
||||||
request,
|
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;
|
if (!change) return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue