Skip to content

Commit e109d38

Browse files
committed
Removes/deprecates welcome storage keys
1 parent 83f0748 commit e109d38

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/constants.storage.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export type IntegrationAuthenticationKeys =
1919
export const enum SyncedStorageKeys {
2020
Version = 'gitlens:synced:version',
2121
PreReleaseVersion = 'gitlens:synced:preVersion',
22-
HomeViewWelcomeVisible = 'gitlens:views:welcome:visible',
2322
}
2423

2524
export type DeprecatedGlobalStorage = {
@@ -36,6 +35,8 @@ export type DeprecatedGlobalStorage = {
3635
/** @deprecated */
3736
'home:banners:dismissed': string[];
3837
/** @deprecated */
38+
pendingWelcomeOnFocus: boolean;
39+
/** @deprecated */
3940
'plus:discountNotificationShown': boolean;
4041
/** @deprecated */
4142
'plus:migratedAuthentication': boolean;
@@ -45,6 +46,8 @@ export type DeprecatedGlobalStorage = {
4546
'views:layout': 'gitlens' | 'scm';
4647
/** @deprecated */
4748
'views:commitDetails:dismissed': 'sidebar'[];
49+
/** @deprecated */
50+
'views:welcome:visible': boolean;
4851
} & {
4952
/** @deprecated */
5053
[key in `disallow:connection:${string}`]: any;
@@ -54,7 +57,6 @@ export type GlobalStorage = {
5457
avatars: [string, StoredAvatar][];
5558
repoVisibility: [string, StoredRepoVisibilityInfo][];
5659
'deepLinks:pending': StoredDeepLinkContext;
57-
pendingWelcomeOnFocus: boolean;
5860
pendingWhatsNewOnFocus: boolean;
5961
// Don't change this key name ('premium`) as its the stored subscription
6062
'premium:subscription': Stored<Subscription & { lastValidatedAt: number | undefined }>;
@@ -65,7 +67,6 @@ export type GlobalStorage = {
6567
version: string;
6668
// Keep the pre-release version separate from the released version
6769
preVersion: string;
68-
'views:welcome:visible': boolean;
6970
'confirm:draft:storage': boolean;
7071
'home:sections:collapsed': string[];
7172
'home:walkthrough:dismissed': boolean;

src/extension.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,7 @@ export async function activate(context: ExtensionContext): Promise<GitLensApi |
149149

150150
let exitMessage;
151151
if (Logger.enabled('debug')) {
152-
exitMessage = `syncedVersion=${syncedVersion}, localVersion=${localVersion}, previousVersion=${previousVersion}, welcome=${storage.get(
153-
'views:welcome:visible',
154-
)}`;
155-
}
156-
157-
if (previousVersion == null) {
158-
void storage.store('views:welcome:visible', true);
152+
exitMessage = `syncedVersion=${syncedVersion}, localVersion=${localVersion}, previousVersion=${previousVersion}`;
159153
}
160154

161155
Configuration.configure(context);
@@ -281,7 +275,7 @@ export function deactivate() {
281275
// }
282276

283277
function setKeysForSync(context: ExtensionContext, ...keys: (SyncedStorageKeys | string)[]) {
284-
context.globalState?.setKeysForSync([...keys, SyncedStorageKeys.Version, SyncedStorageKeys.HomeViewWelcomeVisible]);
278+
context.globalState?.setKeysForSync([...keys, SyncedStorageKeys.Version, SyncedStorageKeys.PreReleaseVersion]);
285279
}
286280

287281
function registerBuiltInActionRunners(container: Container): void {

0 commit comments

Comments
 (0)