Error: no active handlers available for the command

Hi, I have an extension where it registers a command using vscode API(version - 1.65.0) like the following:

commands.registerCommand("hello", callback function)

My application is on top of theia@1.38.0. I have installed the my extension in the application. In the application, when it calls the above command “hello” like the following:

commandRegistry.executeCommand

I get the error: There are no active handlers available for the command.

After some debugging, it looks like this condition is failing which is causing this statement to print.
So, How can I make the handler enabled ? Note - I do not want to enable the command in the UI(as in either in command palette or menu item).

Hey @hyddel,

can you give a bit more context? Like how your command is defined in the package.json, and whether your extension is correctly starting up; If you’re missing the corresponding activationEvents in your package.json for the command, the command might not end up getting registered.

Note - I do not want to enable the command in the UI(as in either in command palette or menu item).

If you don’t give your command a title it won’t appear in the UI.