Skip to content

fix: Java build status spinning forever #2214

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

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

Eskibear
Copy link
Contributor

To fix microsoft/vscode-java-pack#769

Signed-off-by: Yan Zhang [email protected]

@@ -39,6 +39,7 @@ async function getPresenterTaskExecution(): Promise<TaskExecution> {
echo: false,
focus: false
};
presenterTask.isBackground = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

When was this introduced in the API? Asking to know if this'll work in theia

Copy link
Member

Choose a reason for hiding this comment

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

I think isBackground has been around for a while, and supported by Theia ( https://che-incubator.github.io/vscode-theia-comparator/status.html ). However, I'm guessing the terminal only recently started using the property to determine whether to have a spinning icon beside the terminal label ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

isBackground was introduced four years ago, since this task is long-running, I believe it's correct to mark it as isBackground.

I'm guessing the terminal only recently started using the property to determine whether to have a spinning icon beside the terminal label ?

Yes, I tried some previous version e.g. 1.50 as below, there's no visualization of the state at that time, and terminals are in dropdown menu... It has been visualized since vscode refine the terminal UX to present all terminals together.
image

@rgrunber
Copy link
Member

Theia doesn't show a spinning icon for the terminal at all and when installing vscode-java with this change in Theia, I see no visible difference, so it should be safe. I think this is more because Theia doesn't have a view that displays all terminals at once, but instead allows a user to select them from the command palette. I think this should be fine to merge.

@fbricon fbricon added this to the Mid November milestone Nov 17, 2021
@fbricon fbricon added the bug label Nov 17, 2021
@fbricon fbricon merged commit b4f8b07 into redhat-developer:master Nov 17, 2021
@fbricon
Copy link
Collaborator

fbricon commented Nov 17, 2021

Thanks @Eskibear!

@Eskibear Eskibear deleted the fix-spin branch November 18, 2021 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

icon in "Java Build Status" spinning forever
3 participants