mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-15 16:46:32 +00:00
Disabled the badge decoration in the Explorer.
Ref: eclipse-theia/theia#8709 Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
2e00e2db35
commit
1a531db0b7
@ -125,6 +125,8 @@ import { About } from './contributions/about';
|
||||
import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service';
|
||||
import { TabBarRenderer } from './theia/core/tab-bars';
|
||||
import { EditorCommandContribution } from './theia/editor/editor-command';
|
||||
import { NavigatorTabBarDecorator as TheiaNavigatorTabBarDecorator } from '@theia/navigator/lib/browser/navigator-tab-bar-decorator';
|
||||
import { NavigatorTabBarDecorator } from './theia/navigator/navigator-tab-bar-decorator';
|
||||
|
||||
const ElementQueries = require('css-element-queries/src/ElementQueries');
|
||||
|
||||
@ -347,4 +349,8 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
|
||||
// Do not trigger a save on IDE startup if `"editor.autoSave": "on"` was set as a preference.
|
||||
bind(EditorCommandContribution).toSelf().inSingletonScope();
|
||||
rebind(TheiaEditorCommandContribution).toService(EditorCommandContribution);
|
||||
|
||||
// Silent the badge decoration in the Explorer view.
|
||||
bind(NavigatorTabBarDecorator).toSelf().inSingletonScope();
|
||||
rebind(TheiaNavigatorTabBarDecorator).toService(NavigatorTabBarDecorator);
|
||||
});
|
||||
|
@ -0,0 +1,21 @@
|
||||
import { injectable } from 'inversify';
|
||||
import { WidgetDecoration } from '@theia/core/lib/browser/widget-decoration';
|
||||
import { NavigatorTabBarDecorator as TheiaNavigatorTabBarDecorator } from '@theia/navigator/lib/browser/navigator-tab-bar-decorator';
|
||||
|
||||
/**
|
||||
* To silent the badge decoration in the `Explorer`.
|
||||
* https://github.com/eclipse-theia/theia/issues/8709
|
||||
*/
|
||||
@injectable()
|
||||
export class NavigatorTabBarDecorator extends TheiaNavigatorTabBarDecorator {
|
||||
|
||||
onStart(): void {
|
||||
// NOOP
|
||||
}
|
||||
|
||||
decorate(): WidgetDecoration.Data[] {
|
||||
// Does not decorate anything.
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user