Skip to content

Conversation

jdneo
Copy link
Member

@jdneo jdneo commented May 29, 2023

No description provided.

@jdneo jdneo requested a review from testforstephen as a code owner May 29, 2023 03:22
Signed-off-by: Sheng Chen <[email protected]>
@jdneo jdneo marked this pull request as draft May 29, 2023 03:25
while(!javaExt.isActive && count < timeout) {
await delay(1000);
count += 1000;
}
Copy link
Contributor

@testforstephen testforstephen May 29, 2023

Choose a reason for hiding this comment

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

The condition branch if (javaExt && !javaExt.isActive) should end at L130. Otherwise, the subsequent code won't be executed if the Java extension is already activated.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was intended to do this, while not sure if this makes enough sense. What do you think about the follow case:

  1. In an empty workspace, user triggers some redhat.java specific command. such as
    image to open a webview.
  2. Then, redhat.java will be activated, while pack is not.

So the purpose here is to make sure that two extensions are almost activated at the same time.

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