Skip to content

Conversation

@Hanksha
Copy link
Contributor

@Hanksha Hanksha commented Sep 26, 2025

What it does

This PR evaluate enablement and toggle state of command only once before to show it. This prevents the enablement to be checked every time the mouse hovers the menu item.

Closes #16208

How to test

  • Check enablement of menu items still work correctly.
  • Check enablement/toggle state is only checked once via isEnabled/isToggled (add console.log or breakpoint)

Attribution

Contributed on behalf of Lonti.com Pty Ltd.

Review checklist

Reminder for reviewers

@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Sep 26, 2025
Copy link
Contributor

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

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

This does indeed avoid subsequent reevaluations of enablement. 👍

@github-project-automation github-project-automation bot moved this from Waiting on reviewers to Needs merge in PR Backlog Oct 6, 2025
@colin-grant-work
Copy link
Contributor

@Hanksha, you've indicated that this commit should be attributed to Lonti.com Pty Ltd. I believe that that is usually reflected in the commit message for the commit and in the changelog, though it seems that the attribution section of the code of conduct has been abbreviated, perhaps unintentionally?

@ndoschek, can you confirm whether the attribution needs to be included in the final commit message, or just the changelog?

@Hanksha
Copy link
Contributor Author

Hanksha commented Oct 6, 2025

@colin-grant-work Sorry, I was unaware that I needed to do something else, I just saw the attribution section in the PR template and thought it was enough. It seems it was not a problem on my previous PRs (I see the "contributed on behalf" in the changelog) but let me know if I need to change anything.

@colin-grant-work
Copy link
Contributor

Sorry, I was unaware that I needed to do something else

@Hanksha, no problem. I just want to make sure before I merge the PR that I'm not omitting anything important :-).

@ndoschek
Copy link
Member

ndoschek commented Oct 7, 2025

Thanks @colin-grant-work and @Hanksha!
The attribution section in the PR template was introduced to help with changelog generation (see #14490), appreciate you including it 🙌

If there's no strict requirement to include the attribution in the final commit message from the company's side and having it in the changelog is sufficient for you, that's fine. But to be safe, feel free to add it to the commit message as well.

@Hanksha
Copy link
Contributor Author

Hanksha commented Oct 7, 2025

@ndoschek Hi, having it in the changelog is sufficient for me.

@colin-grant-work colin-grant-work merged commit 276431d into eclipse-theia:master Oct 7, 2025
9 of 11 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Oct 7, 2025
@github-actions github-actions bot added this to the 1.66.0 milestone Oct 7, 2025
jefftoffoli pushed a commit to Quallaa-AI/Quallaa-Native that referenced this pull request Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Hovering context menu items calls isEnabled on command handler each time

4 participants