Dear forum members,
I had created a custom tree view based on TreeWidget in theia. Based on certain oprations in the custom tree view, commands (in command registry) are supposed to be executed.
But, when the focus is in the custom tree view, few of the custom commands go missing.
i.e., CommandRegistry.executeCommand
does not execute the commands.
also, in this scenario, CommandRegistry.getActiveHandler
returns undefined
and Error(
The command cannot be executed` is thrown.
But, when I change the focus to an editor in main area, those commands gets executed fine !
Can anyone kindly help me solve this issue?
Thanks in advance.