Browse Source

Revert workspace naming change

main
Ramin Tadayon 2 years ago
committed by Keith Daulton
parent
commit
dbefec1497
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      src/plus/webviews/graph/graphWebview.ts
  2. +1
    -1
      src/storage.ts

+ 3
- 3
src/plus/webviews/graph/graphWebview.ts View File

@ -1282,7 +1282,7 @@ export class GraphWebview extends WebviewBase {
}
private getExcludedRefs(graph: GitGraph | undefined): Record<string, GraphExcludedRef> | 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<string, GraphIncludeOnlyRef> | 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();
}

+ 1
- 1
src/storage.ts View File

@ -191,7 +191,7 @@ export interface WorkspaceStorage {
dismissed?: Record<string, boolean>;
};
columns?: Record<string, StoredGraphColumn>;
excludeRefs?: Record<string, StoredGraphExcludedRef>;
hiddenRefs?: Record<string, StoredGraphExcludedRef>;
};
remote: {
default?: string;

Loading…
Cancel
Save