-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint to prevent floating promises #2497
Conversation
…less into noFloatingPromises
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
most of the way through; stopping for lunch so leaving comments
packages/cursorless-engine/src/core/commandVersionUpgrades/upgradeV5ToV6/upgradeV5ToV6.ts
Outdated
Show resolved
Hide resolved
packages/cursorless-engine/src/core/commandVersionUpgrades/upgradeV5ToV6/upgradeV5ToV6.ts
Outdated
Show resolved
Hide resolved
packages/cursorless-vscode/src/ide/vscode/hats/FontMeasurementsImpl.ts
Outdated
Show resolved
Hide resolved
packages/cursorless-vscode/src/ide/vscode/hats/VscodeHatRenderer.ts
Outdated
Show resolved
Hide resolved
Updated with your suggestions. Just be clear in many cases I just put void because I assume that you would be awaiting things like the tutorial if it actually was important. |
I think in a lot of those cases it only returns a promise to allow for other IDEs; I believe VSCode just resolves immediately |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I installed this one locally and seems fine
I'm also running this locally |
1c9acf8
to
1486cd4
Compare
Fixes #1984
Note that I just mechanically went through all the errors and tried to fix them. We definitely need to look at the change log and decide if we like the changes. Maybe we should add a few more if statements with throw instead of asserting not now and so on.
Checklist