Kaynağa Gözat

Renames deprecated data key

main
Eric Amodio 4 yıl önce
ebeveyn
işleme
cfde9bbf90
2 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. +2
    -1
      src/constants.ts
  2. +2
    -2
      src/views/searchAndCompareView.ts

+ 2
- 1
src/constants.ts Dosyayı Görüntüle

@ -216,10 +216,11 @@ export interface StarredRepositories {
export enum WorkspaceState {
BranchComparisons = 'gitlens:branch:comparisons',
DefaultRemote = 'gitlens:remote:default',
DeprecatedPinnedComparisons = 'gitlens:pinned:comparisons',
StarredBranches = 'gitlens:starred:branches',
StarredRepositories = 'gitlens:starred:repositories',
ViewsRepositoriesAutoRefresh = 'gitlens:views:repositories:autoRefresh',
ViewsSearchAndCompareKeepResults = 'gitlens:views:searchAndCompare:keepResults',
ViewsSearchAndComparePinnedItems = 'gitlens:views:searchAndCompare:pinned',
Deprecated_PinnedComparisons = 'gitlens:pinned:comparisons',
}

+ 2
- 2
src/views/searchAndCompareView.ts Dosyayı Görüntüle

@ -415,7 +415,7 @@ export class SearchAndCompareView extends ViewBase
if (savedPins == null) {
// Migrate any deprecated pinned items
const deprecatedPins = Container.context.workspaceState.get<DeprecatedPinnedComparisons>(
WorkspaceState.DeprecatedPinnedComparisons,
WorkspaceState.Deprecated_PinnedComparisons,
);
if (deprecatedPins == null) return [];
@ -431,7 +431,7 @@ export class SearchAndCompareView extends ViewBase
}
void Container.context.workspaceState.update(WorkspaceState.ViewsSearchAndComparePinnedItems, savedPins);
void Container.context.workspaceState.update(WorkspaceState.DeprecatedPinnedComparisons, undefined);
void Container.context.workspaceState.update(WorkspaceState.Deprecated_PinnedComparisons, undefined);
}
const root = this.ensureRoot();

Yükleniyor…
İptal
Kaydet