diff --git a/CHANGELOG.md b/CHANGELOG.md index b2630c8b535ff..cf19fbbc53298 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - Fixes [#2292](https://github.com/gitkraken/vscode-gitlens/issues/2292) - Push button in BranchTrackingStatusNode of non-current branch does not trigger "Push force" - Fixes [#1488](https://github.com/gitkraken/vscode-gitlens/issues/1488) - Open Folder History not working with non-English language pack - Fixes [#2303](https://github.com/gitkraken/vscode-gitlens/issues/2303) - "Googlesource" gerrit only supports two levels of domain — thanks to [PR #2304](https://github.com/gitkraken/vscode-gitlens/pull/2304) by Matt Buckley ([@Mattadore](https://github.com/Mattadore)) +- Fixes [#2315](https://github.com/gitkraken/vscode-gitlens/issues/2315) - Commit details secondary side bar banner doesn't stay dismissed +- Fixes [#2329](https://github.com/gitkraken/vscode-gitlens/issues/2329) - Remember UI settings in Commit Details panel ## [13.0.4] - 2002-11-03 diff --git a/src/storage.ts b/src/storage.ts index 85af6d00f9c59..8fa02ee2db413 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -163,6 +163,10 @@ export interface GlobalStorage { welcome: { visible?: boolean; }; + commitDetails: { + autolinksExpanded?: boolean; + dismissed?: string[]; + }; }; } @@ -198,10 +202,6 @@ export interface WorkspaceStorage { keepResults?: boolean; pinned?: StoredPinnedItems; }; - commitDetails: { - autolinksExpanded?: boolean; - dismissed?: string[]; - }; }; pinned: { diff --git a/src/webviews/apps/commitDetails/commitDetails.ts b/src/webviews/apps/commitDetails/commitDetails.ts index 9bf56033f86f1..97234245c5274 100644 --- a/src/webviews/apps/commitDetails/commitDetails.ts +++ b/src/webviews/apps/commitDetails/commitDetails.ts @@ -163,6 +163,11 @@ export class CommitDetailsApp extends App> { } private onExpandedChange(e: WebviewPaneExpandedChangeEventDetail) { + this.state.preferences = { + ...this.state.preferences, + autolinksExpanded: e.expanded, + }; + this.sendCommand(PreferencesCommandType, { autolinksExpanded: e.expanded }); } diff --git a/src/webviews/commitDetails/commitDetailsWebviewView.ts b/src/webviews/commitDetails/commitDetailsWebviewView.ts index f8c79df09e277..1d0943c0dd054 100644 --- a/src/webviews/commitDetails/commitDetailsWebviewView.ts +++ b/src/webviews/commitDetails/commitDetailsWebviewView.ts @@ -150,9 +150,9 @@ export class CommitDetailsWebviewView extends WebviewViewBase