dialogs - do not require buttons property

This commit is contained in:
Benjamin Pasero
2021-06-03 08:49:30 +02:00
parent 73f3a69d81
commit dc4b317192
25 changed files with 44 additions and 40 deletions

View File

@@ -546,7 +546,7 @@ export class TunnelModel extends Disposable {
this.mismatchCooldown = newCooldown;
const mismatchString = nls.localize('remote.localPortMismatch.single', "Local port {0} could not be used for forwarding to remote port {1}.\n\nThis usually happens when there is already another process using local port {0}.\n\nPort number {2} has been used instead.",
expectedLocal, tunnel.tunnelRemotePort, tunnel.tunnelLocalPort);
return this.dialogService.show(Severity.Info, mismatchString, [nls.localize('remote.localPortMismatch.Ok', "Ok")]);
return this.dialogService.show(Severity.Info, mismatchString);
}
async forward(remote: { host: string, port: number }, local?: number, name?: string, source?: string, elevateIfNeeded?: boolean,