Browse Source

Adds pre-release check

main
Eric Amodio 1 year ago
parent
commit
99da886904
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      src/extension.ts

+ 8
- 3
src/extension.ts View File

@ -150,7 +150,7 @@ export async function activate(context: ExtensionContext): Promise
);
}
void showWelcomeOrWhatsNew(container, gitlensVersion, previousVersion);
void showWelcomeOrWhatsNew(container, gitlensVersion, prerelease, previousVersion);
void storage.store(prerelease ? 'preVersion' : 'version', gitlensVersion);
@ -282,7 +282,12 @@ function registerBuiltInActionRunners(container: Container): void {
);
}
async function showWelcomeOrWhatsNew(container: Container, version: string, previousVersion: string | undefined) {
async function showWelcomeOrWhatsNew(
container: Container,
version: string,
prerelease: boolean,
previousVersion: string | undefined,
) {
if (previousVersion == null) {
Logger.log(`GitLens first-time install; window.focused=${window.state.focused}`);
@ -325,7 +330,7 @@ async function showWelcomeOrWhatsNew(container: Container, version: string, prev
return;
}
const majorPrerelease = satisfies(previous, '< 2023.6.0800');
const majorPrerelease = prerelease && satisfies(previous, '< 2023.6.0800');
if (current.major === previous.major && !majorPrerelease) return;

Loading…
Cancel
Save