aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-24 11:48:15 +0000
committerGitHub <[email protected]>2020-02-24 11:48:15 +0000
commite2a8e891c15fdc3f92a58ac7d98df1a2914e4f7b (patch)
tree3366bf4f1c05939c9981598b5c5b83ca9753dd9e /editors
parent223a6676fdf8e62bb7616e590abd37b8c4715dcb (diff)
parent910adb9dc73b93a875773871df3b749d1e872192 (diff)
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]>
Diffstat (limited to 'editors')
-rw-r--r--editors/code/src/commands/on_enter.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/editors/code/src/commands/on_enter.ts b/editors/code/src/commands/on_enter.ts
index 25eaebcbe..27ae8ec23 100644
--- a/editors/code/src/commands/on_enter.ts
+++ b/editors/code/src/commands/on_enter.ts
@@ -19,6 +19,12 @@ async function handleKeypress(ctx: Ctx) {
19 const change = await client.sendRequest<undefined | SourceChange>( 19 const change = await client.sendRequest<undefined | SourceChange>(
20 'rust-analyzer/onEnter', 20 'rust-analyzer/onEnter',
21 request, 21 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 }
22 ); 28 );
23 if (!change) return false; 29 if (!change) return false;
24 30