Fix version constraint
Non-destructive upgrades only exist in versions >= 2.4.2
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## [UNRELEASED]
|
## [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
|
## 1.4.1 - 29 January 2021
|
||||||
|
|
||||||
- Reword the telemetry modal dialog box. [#738](https://github.com/github/vscode-codeql/pull/738)
|
- Reword the telemetry modal dialog box. [#738](https://github.com/github/vscode-codeql/pull/738)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const MAX_UPGRADE_MESSAGE_LINES = 10;
|
|||||||
* resolving upgrades. We check for a version of codeql that has all three features.
|
* resolving upgrades. We check for a version of codeql that has all three features.
|
||||||
*/
|
*/
|
||||||
export async function hasNondestructiveUpgradeCapabilities(qs: qsClient.QueryServerClient): Promise<boolean> {
|
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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user