提交 d0a09eca 编写于 作者: B Benjamin Pasero

Tabs: hover improvements (fixes #8728)

上级 85be2127
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册