diff options
author | Aleksey Kladov <[email protected]> | 2020-02-24 11:45:34 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-24 11:45:34 +0000 |
commit | 910adb9dc73b93a875773871df3b749d1e872192 (patch) | |
tree | 99751a75a1184d74ba4ffcf37eb763d923abfbc1 | |
parent | b12cbd60628b6061649c3d41bc8d7022c75aa362 (diff) |
Don't block onEnter if request fails
closes #3286
-rw-r--r-- | editors/code/src/commands/on_enter.ts | 6 |
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 | ||