mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 18:27:38 +01:00
Tabs: hover improvements (fixes #8728)
This commit is contained in:
@@ -292,7 +292,10 @@ export class TabsTitleControl extends TitleControl {
|
||||
|
||||
// Add a tab for each opened editor
|
||||
this.context.getEditors().forEach(editor => {
|
||||
const description = editor.getDescription(true) || '';
|
||||
|
||||
const tabContainer = document.createElement('div');
|
||||
tabContainer.title = description;
|
||||
tabContainer.draggable = true;
|
||||
tabContainer.tabIndex = 0;
|
||||
tabContainer.setAttribute('role', 'presentation'); // cannot use role "tab" here due to https://github.com/Microsoft/vscode/issues/8659
|
||||
@@ -308,7 +311,6 @@ export class TabsTitleControl extends TitleControl {
|
||||
// Tab Label
|
||||
const tabLabel = document.createElement('a');
|
||||
tabLabel.innerText = editor.getName();
|
||||
tabLabel.title = editor.getDescription(true) || '';
|
||||
tabLabelContainer.appendChild(tabLabel);
|
||||
|
||||
// Tab Close
|
||||
|
||||
Reference in New Issue
Block a user