-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix: Make export jar task unblock fetch task process #722
Conversation
} | ||
return this.tasks; | ||
} | ||
|
||
private static getLanguageServerStatusTimeout(): Promise<boolean> { |
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.
nit: just calling it languageServerStatusTimeout()
should be fine. Since we do not get some real data here
} | ||
|
||
public async provideTasks(): Promise<Task[] | undefined> { | ||
if (!await languageServerApiManager.ready()) { | ||
const languageServerStatus = await Promise.race([languageServerApiManager.ready(), BuildArtifactTaskProvider.getLanguageServerStatusTimeout()]); |
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.
And let's extract this Promise.race statement to a method with document explaining the reason doing this.
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.
in 0f4564c we:
- extract the utility to languageServerApiManager, named
isReady(timeout)
- rename original
isReady
field toisServerReady
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.
LGTM!
fix #720
This PR contains two things: