mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode 3a6dcb42008d509900b3a3b2d695564eeb4dbdac (#5098)
This commit is contained in:
@@ -145,12 +145,13 @@ export class NoTabsTitleControl extends TitleControl {
|
||||
this.redraw();
|
||||
}
|
||||
|
||||
updateEditorLabel(editor?: IEditorInput): void {
|
||||
if (!editor) {
|
||||
editor = withNullAsUndefined(this.group.activeEditor);
|
||||
}
|
||||
if (editor) {
|
||||
this.ifEditorIsActive(editor, () => this.redraw());
|
||||
updateEditorLabel(editor: IEditorInput): void {
|
||||
this.ifEditorIsActive(editor, () => this.redraw());
|
||||
}
|
||||
|
||||
updateEditorLabels(): void {
|
||||
if (this.group.activeEditor) {
|
||||
this.updateEditorLabel(this.group.activeEditor); // we only have the active one to update
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -371,6 +371,12 @@ export class TabsTitleControl extends TitleControl {
|
||||
|
||||
updateEditorLabel(editor: IEditorInput): void {
|
||||
|
||||
// Update all labels to account for changes to tab labels
|
||||
this.updateEditorLabels();
|
||||
}
|
||||
|
||||
updateEditorLabels(): void {
|
||||
|
||||
// A change to a label requires to recompute all labels
|
||||
this.computeTabLabels();
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ export abstract class TitleControl extends Themable {
|
||||
|
||||
private registerListeners(): void {
|
||||
this._register(this.extensionService.onDidRegisterExtensions(() => this.updateEditorActionsToolbar()));
|
||||
this._register(this.labelService.onDidChangeFormatters(() => this.updateEditorLabel()));
|
||||
this._register(this.labelService.onDidChangeFormatters(() => this.updateEditorLabels()));
|
||||
}
|
||||
|
||||
protected abstract create(parent: HTMLElement): void;
|
||||
@@ -343,7 +343,9 @@ export abstract class TitleControl extends Themable {
|
||||
|
||||
abstract setActive(isActive: boolean): void;
|
||||
|
||||
abstract updateEditorLabel(editor?: IEditorInput): void;
|
||||
abstract updateEditorLabel(editor: IEditorInput): void;
|
||||
|
||||
abstract updateEditorLabels(): void;
|
||||
|
||||
abstract updateEditorDirty(editor: IEditorInput): void;
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ class NotificationMessageRenderer {
|
||||
|
||||
const anchor = document.createElement('a');
|
||||
anchor.textContent = link.name;
|
||||
anchor.title = link.href;
|
||||
anchor.title = link.title;
|
||||
anchor.href = link.href;
|
||||
|
||||
if (actionHandler) {
|
||||
|
||||
Reference in New Issue
Block a user