mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
connectWithRetry needed to pass as ... so each arg was set correctly, instead of having 1st param be an array of the input arguments
This commit is contained in:
@@ -301,7 +301,7 @@ export class ClusterController {
|
|||||||
private async withConnectRetry<T>(f: (...args: any[]) => Promise<T>, promptConnect: boolean, errorMessage: string, ...args: any[]): Promise<T> {
|
private async withConnectRetry<T>(f: (...args: any[]) => Promise<T>, promptConnect: boolean, errorMessage: string, ...args: any[]): Promise<T> {
|
||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
return await f(this, args);
|
return await f(this, ...args);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (promptConnect) {
|
if (promptConnect) {
|
||||||
// We don't want to open multiple dialogs here if multiple calls come in the same time so check
|
// We don't want to open multiple dialogs here if multiple calls come in the same time so check
|
||||||
|
|||||||
Reference in New Issue
Block a user