From 3793058ce0205849c6159ba6070ada232c071937 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Mon, 4 Mar 2024 12:26:01 +0800 Subject: [PATCH] fix(vscode): invalid semver condition --- extensions/vscode/src/features/doctor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/src/features/doctor.ts b/extensions/vscode/src/features/doctor.ts index 99c5e233e5..61aaac1c84 100644 --- a/extensions/vscode/src/features/doctor.ts +++ b/extensions/vscode/src/features/doctor.ts @@ -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: [