// Extension is not running. Reload the window to handle.
if(enabled){
this.dialogService.confirm({
constresult=awaitthis.dialogService.confirm({
message:localize('reloadAndHandle',"Extension '{0}' is not loaded. Would you like to reload the window to load the extension and open the URL?",extension.manifest.displayName||extension.manifest.name),
detail:`${extension.manifest.displayName||extension.manifest.name} (${extensionIdentifier.id}) wants to open a URL:\n\n${uri.toString()}`,
primaryButton:localize('reloadAndOpen',"&&Reload Window and Open"),
type:'question'
}).then(result=>{
if(result.confirmed){
returnthis.reloadAndHandle(uri);
}
returnnull;
});
if(!result.confirmed){
return;
}
awaitthis.reloadAndHandle(uri);
}
// Extension is disabled. Enable the extension and reload the window to handle.
else{
this.dialogService.confirm({
constresult=awaitthis.dialogService.confirm({
message:localize('enableAndHandle',"Extension '{0}' is disabled. Would you like to enable the extension and reload the window to open the URL?",extension.manifest.displayName||extension.manifest.name),
detail:`${extension.manifest.displayName||extension.manifest.name} (${extensionIdentifier.id}) wants to open a URL:\n\n${uri.toString()}`,
primaryButton:localize('enableAndReload',"&&Enable and Open"),
// Install the Extension and reload the window to handle.
this.dialogService.confirm({
message:localize('installAndHandle',"Extension '{0}' is not installed. Would you like to install the extension and reload the window to open this URL?",galleryExtension.displayName||galleryExtension.name),
detail:`${galleryExtension.displayName||galleryExtension.name} (${extensionIdentifier.id}) wants to open a URL:\n\n${uri.toString()}`,
// Install the Extension and reload the window to handle.
constresult=awaitthis.dialogService.confirm({
message:localize('installAndHandle',"Extension '{0}' is not installed. Would you like to install the extension and reload the window to open this URL?",galleryExtension.displayName||galleryExtension.name),
detail:`${galleryExtension.displayName||galleryExtension.name} (${extensionIdentifier.id}) wants to open a URL:\n\n${uri.toString()}`,