未验证 提交 06f568ff 编写于 作者: S Sandeep Somavarapu 提交者: GitHub

Merge pull request #49825 from InspectorDeno/master

Add tooltips to extension navbar
......@@ -99,10 +99,12 @@ class NavBar {
this.actionbar = new ActionBar(element, { animated: false });
}
push(id: string, label: string): void {
push(id: string, label: string, tooltip: string): void {
const run = () => this._update(id);
const action = new Action(id, label, null, true, run);
action.tooltip = tooltip;
this.actions.push(action);
this.actionbar.push(action);
......@@ -371,10 +373,10 @@ export class ExtensionEditor extends BaseEditor {
this.navbar.clear();
this.navbar.onChange(this.onNavbarChange.bind(this, extension), this, this.transientDisposables);
this.navbar.push(NavbarSection.Readme, localize('details', "Details"));
this.navbar.push(NavbarSection.Contributions, localize('contributions', "Contributions"));
this.navbar.push(NavbarSection.Changelog, localize('changelog', "Changelog"));
this.navbar.push(NavbarSection.Dependencies, localize('dependencies', "Dependencies"));
this.navbar.push(NavbarSection.Readme, localize('details', "Details"), localize('detailstooltip', "Extension details, rendered from the extension's 'README.md' file"));
this.navbar.push(NavbarSection.Contributions, localize('contributions', "Contributions"), localize('contributionstooltip', "Extension contributions to the VS Code editor"));
this.navbar.push(NavbarSection.Changelog, localize('changelog', "Changelog"), localize('changelogtooltip', "Extension update history, rendered from the extension's 'CHANGELOG.md' file"));
this.navbar.push(NavbarSection.Dependencies, localize('dependencies', "Dependencies"), localize('dependenciestooltip', "Extension dependencies, lists other extensions this extension depends on"));
this.editorLoadComplete = true;
return super.setInput(input, options);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册