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
console.log(`Rapicgen is already installed with version ${versionStatus.currentVersion}, which is greater than or equal to extension version ${versionStatus.targetVersion}. No update needed.`);
154
+
returntrue;
155
+
}
156
+
157
+
// Set the appropriate title for the progress notification
158
+
consttitle=isUpdate&&versionStatus?.needsUpdate
159
+
? `Updating Rapicgen tool from v${versionStatus.currentVersion} to v${versionStatus.targetVersion}...`
`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
+
}
218
330
}
219
331
220
332
constnamespace=getNamespace();
@@ -319,6 +431,22 @@ async function executeRapicgenTypeScript(generator: string, specificationFilePat
`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
+
}
322
450
}
323
451
324
452
// For TypeScript, we get an output directory rather than a single file
0 commit comments