this.content.innerHTML='';// Clear content before setting navbar actions.
if(extension.hasReadme()){
this.navbar.push(NavbarSection.Readme,localize('details',"Details"),localize('detailstooltip',"Extension details, rendered from the extension's 'README.md' file"));
}
this.extensionManifest.get()
.promise
.then(manifest=>{
if(extension.extensionPack.length){
this.navbar.push(NavbarSection.ExtensionPack,localize('extensionPack',"Extension Pack"),localize('extensionsPack',"Set of extensions that can be installed together"));
}
if(manifest&&manifest.contributes){
this.navbar.push(NavbarSection.Contributions,localize('contributions',"Contributions"),localize('contributionstooltip',"Lists contributions to VS Code by this extension"));
}
if(extension.hasChangelog()){
this.navbar.push(NavbarSection.Changelog,localize('changelog',"Changelog"),localize('changelogtooltip',"Extension update history, rendered from the extension's 'CHANGELOG.md' file"));
}
if(extension.dependencies.length){
this.navbar.push(NavbarSection.Dependencies,localize('dependencies',"Dependencies"),localize('dependenciestooltip',"Lists extensions this extension depends on"));
this.navbar.push(NavbarSection.Readme,localize('details',"Details"),localize('detailstooltip',"Extension details, rendered from the extension's 'README.md' file"));
}
this.editorLoadComplete=true;
this.extensionManifest.get()
.promise
.then(manifest=>{
if(extension.extensionPack.length){
this.navbar.push(NavbarSection.ExtensionPack,localize('extensionPack',"Extension Pack"),localize('extensionsPack',"Set of extensions that can be installed together"));
}
if(manifest&&manifest.contributes){
this.navbar.push(NavbarSection.Contributions,localize('contributions',"Contributions"),localize('contributionstooltip',"Lists contributions to VS Code by this extension"));
}
if(extension.hasChangelog()){
this.navbar.push(NavbarSection.Changelog,localize('changelog',"Changelog"),localize('changelogtooltip',"Extension update history, rendered from the extension's 'CHANGELOG.md' file"));
}
if(extension.dependencies.length){
this.navbar.push(NavbarSection.Dependencies,localize('dependencies',"Dependencies"),localize('dependenciestooltip',"Lists extensions this extension depends on"));