소스 검색

Revert workspace naming change

main
Ramin Tadayon 2 년 전
committed by Keith Daulton
부모
커밋
dbefec1497
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +3
    -3
      src/plus/webviews/graph/graphWebview.ts
  2. +1
    -1
      src/storage.ts

+ 3
- 3
src/plus/webviews/graph/graphWebview.ts 파일 보기

@ -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 파일 보기

@ -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;

불러오는 중...
취소
저장