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

Rename all applicable Thenables to Promise #352

Merged
merged 2 commits into from
Nov 13, 2020
Merged

Conversation

JPinkney
Copy link
Contributor

Signed-off-by: Josh Pinkney [email protected]

What does this PR do?

This PR renames all Thenables to Promises and removes a few pieces of code that are never called. There is 1 lingering Thenable that I didn't get rid of in server.ts. The type returned for formatterRegistration is a Thenable (all promises are thenable but not all thenables are promises) so we can't convert it.

What issues does this PR fix or reference?

#138

Is it tested? How?

Tested to see that the yamlValidation contribution, json schema store schemas, setting a schema manually, and the custom contributor api all still work and then ran npm run test

Copy link
Collaborator

@evidolob evidolob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

test/utils/testHelper.ts Show resolved Hide resolved
@JPinkney JPinkney merged commit 2bae915 into master Nov 13, 2020
@JPinkney JPinkney deleted the thenable-to-promise branch November 13, 2020 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants