mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Improve discovery/upgrade messages (#12003)
This commit is contained in:
@@ -13,11 +13,14 @@ let localAzdata: IAzdataTool | undefined = undefined;
|
||||
export async function activate(): Promise<azdataExt.IExtension> {
|
||||
localAzdata = await checkForAzdata();
|
||||
// Don't block on this since we want the extension to finish activating without needing user input
|
||||
// upgrade if available and user wants it.
|
||||
checkAndUpgradeAzdata(localAzdata)
|
||||
.then(async () => {
|
||||
localAzdata = await findAzdata(); // now again find and return the currently installed azdata
|
||||
.then(async upgradePerformed => {
|
||||
if (upgradePerformed) { // If upgrade was performed then find and save the new azdata
|
||||
localAzdata = await findAzdata();
|
||||
}
|
||||
})
|
||||
.catch(err => vscode.window.showWarningMessage(loc.updateError(err))); //update if available and user wants it.
|
||||
.catch(err => vscode.window.showWarningMessage(loc.upgradeError(err)));
|
||||
return {
|
||||
azdata: {
|
||||
arc: {
|
||||
|
||||
Reference in New Issue
Block a user