Skip to content

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 <[email protected]>
@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
@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