Skip to content

Commit

Permalink
fix(vscode): correct new version label condition
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Apr 25, 2024
1 parent cf7bdec commit a69909e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/vscode/src/common.ts
Expand Up @@ -255,7 +255,10 @@ async function doActivate(context: vscode.ExtensionContext, createLc: CreateLang
title: 'Select Version',
command: 'vue-insiders.update',
};
if (json.versions.some(version => version.version === context.extension.packageJSON.version)) {
if (
json.versions.some(version => version.version === context.extension.packageJSON.version)
&& context.extension.packageJSON.version !== json.latest
) {
item.detail = 'New Version Available!';
item.severity = vscode.LanguageStatusSeverity.Warning;
}
Expand Down

0 comments on commit a69909e

Please sign in to comment.