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

fix: falsy context menu handlerId #2183

Merged
merged 1 commit into from
Aug 22, 2023
Merged

fix: falsy context menu handlerId #2183

merged 1 commit into from
Aug 22, 2023

Conversation

kittaakos
Copy link
Contributor

Motivation

To fix the non-functional New Tab content menu item from •••. The first context menu item with ID 0 has no click handler.

Change description

Customized the default Theia menu item building to attach the click handler to the menu node with ID 0

Steps to reproduce:

  • Open IDE2,
  • Create a new sketch (File > New Sketch, or Ctrl/Cmd+N),
  • Open the context menu in the editor's toolbar by clicking on •••,
  • Click New Tab the new file dialog opens.

Other information

Originally reported here: https://forum.arduino.cc/t/new-tab-command-first-invocation-does-nothing/1160085
Ref: eclipse-theia/theia#12500 (comment)

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

The very first context menu item with ID `0` has not had a click handler

Ref: eclipse-theia/theia#12500
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: theia Related to the Theia IDE framework labels Aug 21, 2023
@kittaakos kittaakos self-assigned this Aug 21, 2023
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

I verified this fixes forum#1160085.

Thanks Akos!

@kittaakos kittaakos merged commit 5fd02b9 into main Aug 22, 2023
32 checks passed
@kittaakos kittaakos deleted the fix-selection-service branch August 22, 2023 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: theia Related to the Theia IDE framework type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants