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

remove any in scalaDebugger #1208

Merged
merged 2 commits into from
Oct 31, 2022
Merged

Conversation

kpodsiad
Copy link
Member

No description provided.

@kpodsiad kpodsiad requested a review from tgodzik October 31, 2022 07:34
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Looks good, just one question from my side.

_folder: WorkspaceFolder | undefined,
debugConfiguration: DebugConfiguration
): ProviderResult<DebugConfiguration> {
): Promise<DebugConfiguration | null> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wasn't ProviderResult already correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

async function has to return Promise<T>, ProviderResult is a bit weaker than Promise as it's null | Thenable<T>

Copy link
Member Author

Choose a reason for hiding this comment

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

using async/await syntax is my personal preference, for me it seems easier than then and callbacks

@kpodsiad kpodsiad merged commit d85762a into scalameta:main Oct 31, 2022
@kpodsiad kpodsiad deleted the kpodsiadlo/better-types branch October 31, 2022 16:11
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.

2 participants