in src/helper/updateHelper.ts [14:33]
static async updateAssay(confirmLatest = true) {
const { downloadLink, currentVersion, version } =
(await UpdateHelper.checkAndGetNewVersion()) || {};
if (downloadLink) {
vscode.window
.showInformationMessage(
`A new version of Assay is available (${version}) from your current version (${currentVersion}). Would you like to update?`,
"Update Assay"
)
.then((value) => {
if (value) {
UpdateHelper.installNewVersion(downloadLink, version);
}
});
return true;
} else if (confirmLatest) {
vscode.window.showInformationMessage(`Assay is up to date (${version}).`);
return false;
}
}