-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signature help: restructure async work (#1198)
sendRequest isn't an async function and it can synchronously throw errors so we need something to prevent reentrant updates in the error case. Otherwise though we don't needed it if we move more work into the state. I've also calculated line/column ASAP - I'm not sure this is necessary but it feels obviously correct / straightforward which is a win in this code.
- Loading branch information
1 parent
9e9fb88
commit 9947c9a
Showing
1 changed file
with
104 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters