Skip to content

Commit e78f6ca

Browse files
committed
Fixes when the MCP message displays
1 parent 0c8672e commit e78f6ca

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/extension.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,14 @@ async function showWhatsNew(
394394
}
395395

396396
function showMcp(version: string, previousVersion: string | undefined): void {
397-
if (previousVersion != null && satisfies(fromString(previousVersion), '>= 17.5')) return;
397+
if (
398+
previousVersion == null ||
399+
version === previousVersion ||
400+
compare(version, previousVersion) !== 1 ||
401+
satisfies(fromString(previousVersion), '>= 17.5')
402+
) {
403+
return;
404+
}
405+
398406
void showMcpMessage(version);
399407
}

0 commit comments

Comments
 (0)