From dbefec14978c5046e78eb96052237d2786770b6a Mon Sep 17 00:00:00 2001 From: Ramin Tadayon Date: Tue, 13 Dec 2022 16:49:59 -0700 Subject: [PATCH] Revert workspace naming change --- src/plus/webviews/graph/graphWebview.ts | 6 +++--- src/storage.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts index 3e9b593..69ad444 100644 --- a/src/plus/webviews/graph/graphWebview.ts +++ b/src/plus/webviews/graph/graphWebview.ts @@ -1282,7 +1282,7 @@ export class GraphWebview extends WebviewBase { } private getExcludedRefs(graph: GitGraph | undefined): Record | undefined { - return this.filterExcludedRefs(this.container.storage.getWorkspace('graph:excludeRefs'), graph); + return this.filterExcludedRefs(this.container.storage.getWorkspace('graph:hiddenRefs'), graph); } private getIncludeOnlyRefs(graph: GitGraph | undefined): Record | undefined { @@ -1548,7 +1548,7 @@ export class GraphWebview extends WebviewBase { } private updateExcludedRefs(refs: GraphExcludedRef[], visible: boolean) { - let storedExcludedRefs = this.container.storage.getWorkspace('graph:excludeRefs'); + let storedExcludedRefs = this.container.storage.getWorkspace('graph:hiddenRefs'); for (const ref of refs) { storedExcludedRefs = updateRecordValue( storedExcludedRefs, @@ -1557,7 +1557,7 @@ export class GraphWebview extends WebviewBase { ); } - void this.container.storage.storeWorkspace('graph:excludeRefs', storedExcludedRefs); + void this.container.storage.storeWorkspace('graph:hiddenRefs', storedExcludedRefs); void this.notifyDidChangeRefsVisibility(); } diff --git a/src/storage.ts b/src/storage.ts index d2e12b0..d3640b1 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -191,7 +191,7 @@ export interface WorkspaceStorage { dismissed?: Record; }; columns?: Record; - excludeRefs?: Record; + hiddenRefs?: Record; }; remote: { default?: string;