Skip to content

Commit

Permalink
fix(vscode): invalid semver condition
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 4, 2024
1 parent 2413009 commit 3793058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/vscode/src/features/doctor.ts
Expand Up @@ -244,9 +244,9 @@ export async function register(context: vscode.ExtensionContext, client: BaseLan
}
*/

// check tsdk version should not be 4.9
// check tsdk version should be higher than 5.0.0
const tsdk = await getTsdk(context);
if (tsdk.version && semver.gte(tsdk.version, '5')) {
if (tsdk.version && !semver.gte(tsdk.version, '5.0.0')) {
problems.push({
title: 'Requires TSDK 5.0 or higher',
message: [
Expand Down

0 comments on commit 3793058

Please sign in to comment.