Rearrange code

This commit is contained in:
Aleksey Kladov 2019-12-31 02:17:50 +01:00
parent 44d6ab2650
commit 8346bdc04d
2 changed files with 106 additions and 107 deletions

View file

@ -65,7 +65,7 @@ export class Ctx {
async sendRequestWithRetry<R>(
method: string,
param: any,
token: vscode.CancellationToken,
token?: vscode.CancellationToken,
): Promise<R> {
await this.client.onReady();
for (const delay of [2, 4, 6, 8, 10, null]) {