From b810ebdd3ca0e9289a7756e66791c87388afeb64 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 8 Nov 2022 22:39:56 -0500 Subject: [PATCH] Preserves autolinks state per-workspace --- src/storage.ts | 4 +++- src/webviews/commitDetails/commitDetailsWebviewView.ts | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/storage.ts b/src/storage.ts index 8fa02ee..e277a05 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -164,7 +164,6 @@ export interface GlobalStorage { visible?: boolean; }; commitDetails: { - autolinksExpanded?: boolean; dismissed?: string[]; }; }; @@ -202,6 +201,9 @@ export interface WorkspaceStorage { keepResults?: boolean; pinned?: StoredPinnedItems; }; + commitDetails: { + autolinksExpanded?: boolean; + }; }; pinned: { diff --git a/src/webviews/commitDetails/commitDetailsWebviewView.ts b/src/webviews/commitDetails/commitDetailsWebviewView.ts index 1d0943c..c4e218e 100644 --- a/src/webviews/commitDetails/commitDetailsWebviewView.ts +++ b/src/webviews/commitDetails/commitDetailsWebviewView.ts @@ -150,7 +150,7 @@ export class CommitDetailsWebviewView extends WebviewViewBase