Add links to the statusbar

Can anyone please let me know how links can be added to theia’s status bar ?

[original thread by rs]

It is actually quite easy, we have many examples on different statusbar entries in the platform.

For example, you must first inject the StatusBar contribution into your file:

@inject(StatusBar) protected readonly statusBar: StatusBar;

And use the method setElement to set your content:

his.statusBar.setElement('editor-status-encoding', {
            text: 'test label'
            alignment: StatusBarAlignment.RIGHT,
            priority: 10,
            tooltip: 'Select Encoding'