mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-11 10:38:31 -05:00
fail installing extensions not compatible with the engine (#990)
This commit is contained in:
@@ -247,16 +247,11 @@ export function isVersionValid(currentVersion: string, requestedVersion: string,
|
||||
}
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
|
||||
//TODO: Currently the validation happens with the vscode engine version.
|
||||
// We will have to have sqlops engine version in package.json instead and compare
|
||||
// with that
|
||||
|
||||
//if (!isValidVersion(currentVersion, desiredVersion)) {
|
||||
// notices.push(nls.localize('versionMismatch', "Extension is not compatible with Code {0}. Extension requires: {1}.", currentVersion, requestedVersion));
|
||||
// return false;
|
||||
//}
|
||||
if (!isValidVersion(currentVersion, desiredVersion)) {
|
||||
notices.push(nls.localize('versionMismatch', "Extension is not compatible with Code {0}. Extension requires: {1}.", currentVersion, requestedVersion));
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user