I’m following the example of the problem-tree to create my own tree widget. I can’t seem to get the context menu to show on my widget, and the nodes don’t highlight-toggle when I select them.
I’m trying to understand how this works in the problem widget - I think the main piece is in the problem-contribution.ts file where it defines “registerCommands” and “registerMenus” and I’ve implemented these pieces without any compiler issues for my widget, but the context menu doesn’t show and the selections don’t toggle.
What is the general pattern here that enables those features?
[original thread by shortwavedave]