Skip to content
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

Don't Use Async with TPromise in VSCode Codebase #30217

Closed
wants to merge 1 commit into from

Conversation

mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Jul 6, 2017

Fixes #30216

Bug
While compiling vscode with TS 2.4, there were around 10 errors reported about async functions that return a TPromise.

Fix
I'm checking with the TS team to see if these errors are expected or not. As a workaround, I believe we need to stop using TPromise with async functions, at least for now.

This change changes all instances that use async to instead use then.

Fixes microsoft#30216

**Bug**
While compiling vscode with TS 2.4, there were around 10 errors reported about async functions that return a `TPromise`.

**Fix**
I'm checking with the TS team to see if these errors are expected or not. Until then, I believe we need to stop using `TPromise` with async functions. This change changes all instances that use `async` to instead use `then`.
@mjbvz
Copy link
Collaborator Author

mjbvz commented Jul 7, 2017

Closing in favor of solutions suggested in #30216 (comment)

@mjbvz mjbvz closed this Jul 7, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix TS 2.4 PromiseLike Errors With Async in VSCode Codebase
2 participants