Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hide unused activity bar icons (view container icons)
import { injectable } from 'inversify';
import { FrontendApplicationContribution, FrontendApplication } from '@theia/core/lib/browser';
import { MaybePromise } from '@theia/core/lib/common/types';
import { Widget } from '@theia/core/lib/browser/widgets';
export class ExampleFrontendContribution implements FrontendApplicationContribution {
* Called after the application shell has been attached in case there is no previous workbench layout state.
* Should return a promise if it runs asynchronously.
onDidInitializeLayout(app: FrontendApplication): MaybePromise<void> {
// Remove unused widgets Widget) => {
if (['search-in-workspace', 'explorer-view-container', 'scm-view-container', 'scm-view'].includes( ||'debug')) {
Copy link

azappa commented Apr 1, 2020

Thanks man! Can you provide also other code for extension?

Copy link

hereischen commented Jan 28, 2021

That is what I am looking for, thanks a lot!

Copy link

maciejChmuraCodete commented Aug 24, 2021

Hello, I want to achieve something similar -> remove some ui from the app like top main menu.
Where this file should be saved to implement these changes?

Copy link

drochgenius commented Aug 24, 2021

I am not sure, I suggest you ask the Theia community:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment