The example extension demonstrates how to register a command in Theia saying "Hello world" using the message service.
In the running application, trigger the command "Say hello" via the command palette (F1 => "Say Hello"). A message dialog will pop up saying "Hello World".