Fix version constraint

Non-destructive upgrades only exist in versions >= 2.4.2
This commit is contained in:
Andrew Eisenberg
2021-02-02 08:50:45 -08:00
parent 4e94f70e6f
commit 5079abd06f
2 changed files with 3 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
## [UNRELEASED]
- Fix version constraint for flagging CLI support of non-destructive updates [#744](https://github.com/github/vscode-codeql/pull/744)
## 1.4.1 - 29 January 2021
- Reword the telemetry modal dialog box. [#738](https://github.com/github/vscode-codeql/pull/738)

View File

@@ -25,7 +25,7 @@ const MAX_UPGRADE_MESSAGE_LINES = 10;
* resolving upgrades. We check for a version of codeql that has all three features.
*/
export async function hasNondestructiveUpgradeCapabilities(qs: qsClient.QueryServerClient): Promise<boolean> {
return semver.gte(await qs.cliServer.getVersion(), '2.4.1');
return semver.gte(await qs.cliServer.getVersion(), '2.4.2');
}