Skip to content

Commit 1a531db

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
Disabled the badge decoration in the Explorer.
Ref: eclipse-theia/theia#8709 Signed-off-by: Akos Kitta <[email protected]>
1 parent 2e00e2d commit 1a531db

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Diff for: arduino-ide-extension/src/browser/arduino-ide-frontend-module.ts

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ import { About } from './contributions/about';
125125
import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
126126
import { TabBarRenderer } from './theia/core/tab-bars';
127127
import { EditorCommandContribution } from './theia/editor/editor-command';
128+
import { NavigatorTabBarDecorator as TheiaNavigatorTabBarDecorator } from '@theia/navigator/lib/browser/navigator-tab-bar-decorator';
129+
import { NavigatorTabBarDecorator } from './theia/navigator/navigator-tab-bar-decorator';
128130

129131
const ElementQueries = require('css-element-queries/src/ElementQueries');
130132

@@ -347,4 +349,8 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
347349
// Do not trigger a save on IDE startup if `"editor.autoSave": "on"` was set as a preference.
348350
bind(EditorCommandContribution).toSelf().inSingletonScope();
349351
rebind(TheiaEditorCommandContribution).toService(EditorCommandContribution);
352+
353+
// Silent the badge decoration in the Explorer view.
354+
bind(NavigatorTabBarDecorator).toSelf().inSingletonScope();
355+
rebind(TheiaNavigatorTabBarDecorator).toService(NavigatorTabBarDecorator);
350356
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { injectable } from 'inversify';
2+
import { WidgetDecoration } from '@theia/core/lib/browser/widget-decoration';
3+
import { NavigatorTabBarDecorator as TheiaNavigatorTabBarDecorator } from '@theia/navigator/lib/browser/navigator-tab-bar-decorator';
4+
5+
/**
6+
* To silent the badge decoration in the `Explorer`.
7+
* https://github.com/eclipse-theia/theia/issues/8709
8+
*/
9+
@injectable()
10+
export class NavigatorTabBarDecorator extends TheiaNavigatorTabBarDecorator {
11+
12+
onStart(): void {
13+
// NOOP
14+
}
15+
16+
decorate(): WidgetDecoration.Data[] {
17+
// Does not decorate anything.
18+
return [];
19+
}
20+
21+
}

0 commit comments

Comments
 (0)