Skip to content

Commit

Permalink
Prevent tooltip if no caption is provided and add caption for settings (
Browse files Browse the repository at this point in the history
  • Loading branch information
haydar-metin committed Jul 23, 2024
1 parent 10f3ff4 commit 7cbfc7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/browser/shell/tab-bars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ export class TabBarRenderer extends TabBar.Renderer {
cssClasses: ['extended-tab-preview'],
visualPreview: this.corePreferences?.['window.tabbar.enhancedPreview'] === 'visual' ? width => this.renderVisualPreview(width, title) : undefined
});
} else {
} else if (title.caption) {
this.hoverService.requestHover({
content: title.caption,
target: event.currentTarget,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export class PreferencesWidget extends Panel implements StatefulWidget {
protected init(): void {
this.id = PreferencesWidget.ID;
this.title.label = PreferencesWidget.LABEL;
this.title.caption = PreferencesWidget.LABEL;
this.title.closable = true;
this.addClass('theia-settings-container');
this.title.iconClass = codicon('settings');
Expand Down

0 comments on commit 7cbfc7a

Please sign in to comment.