ソースを参照

Adds pre-release check

main
Eric Amodio 1年前
コミット
99da886904
1個のファイルの変更8行の追加3行の削除
  1. +8
    -3
      src/extension.ts

+ 8
- 3
src/extension.ts ファイルの表示

@ -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;

読み込み中…
キャンセル
保存