You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`A newer version of the Rapicgen tool is available (current: v${versionStatus.currentVersion}, available: v${versionStatus.targetVersion}). Would you like to update?`,
223
+
'Yes','No'
224
+
);
225
+
226
+
if(shouldUpdate==='Yes'){
227
+
constupdateSuccess=awaitinstallRapicgen(context);
228
+
if(!updateSuccess){
229
+
vscode.window.showWarningMessage(`Failed to update the Rapicgen tool. Continuing with existing version ${versionStatus.currentVersion}.`);
230
+
}
231
+
}
232
+
}
233
+
returntrue;
234
+
}
235
+
}
236
+
194
237
/**
195
238
* Gets the namespace to use for generated code
196
239
* @returns The namespace from configuration or a default value
@@ -295,38 +338,10 @@ async function executeRapicgen(generator: string, specificationFilePath: string,
`A newer version of the Rapicgen tool is available (current: v${versionStatus.currentVersion}, available: v${versionStatus.targetVersion}). Would you like to update?`,
320
-
'Yes','No'
321
-
);
322
-
323
-
if(shouldUpdate==='Yes'){
324
-
constupdateSuccess=awaitinstallRapicgen(context);
325
-
if(!updateSuccess){
326
-
vscode.window.showWarningMessage(`Failed to update the Rapicgen tool. Continuing with existing version ${versionStatus.currentVersion}.`);
327
-
}
328
-
}
329
-
}
341
+
// Ensure the Rapicgen tool is installed and up-to-date
`A newer version of the Rapicgen tool is available (current: v${versionStatus.currentVersion}, available: v${versionStatus.targetVersion}). Would you like to update?`,
440
-
'Yes','No'
441
-
);
442
-
443
-
if(shouldUpdate==='Yes'){
444
-
constupdateSuccess=awaitinstallRapicgen(context);
445
-
if(!updateSuccess){
446
-
vscode.window.showWarningMessage(`Failed to update the Rapicgen tool. Continuing with existing version ${versionStatus.currentVersion}.`);
447
-
}
448
-
}
449
-
}
433
+
// Ensure the Rapicgen tool is installed and up-to-date
0 commit comments