mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Don't show an empty quick pick to remote explorer users
This commit is contained in:
parent
c0ec3820b8
commit
aed7eb754a
|
@ -328,14 +328,15 @@ abstract class HelpItemBase implements IHelpItem {
|
|||
};
|
||||
}))).filter(item => item.description);
|
||||
|
||||
const action = await this.quickInputService.pick(actions, { placeHolder: nls.localize('pickRemoteExtension', "Select url to open") });
|
||||
|
||||
if (action) {
|
||||
await this.takeAction(action.extensionDescription, action.description);
|
||||
if (actions.length) {
|
||||
const action = await this.quickInputService.pick(actions, { placeHolder: nls.localize('pickRemoteExtension', "Select url to open") });
|
||||
if (action) {
|
||||
await this.takeAction(action.extensionDescription, action.description);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
await this.takeAction(this.values[0].extensionDescription, await this.values[0].url);
|
||||
}
|
||||
await this.takeAction(this.values[0].extensionDescription, await this.values[0].url);
|
||||
|
||||
}
|
||||
|
||||
protected abstract takeAction(extensionDescription: IExtensionDescription, url?: string): Promise<void>;
|
||||
|
|
Loading…
Reference in a new issue