Skip to content

Commit

Permalink
Remove obsolete migration code for Timeline setting (#198542)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjsjohnmurray authored Nov 17, 2023
1 parent 5598785 commit 69c3625
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/vs/workbench/contrib/timeline/browser/timelinePane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,6 @@ export class TimelinePane extends ViewPane {
this.followActiveEditorContext = TimelineFollowActiveEditorContext.bindTo(this.contextKeyService);
this.timelineExcludeSourcesContext = TimelineExcludeSources.bindTo(this.contextKeyService);

// TOOD @lramos15 remove after a few iterations of deprecated setting
const oldExcludedSourcesSetting: string[] = configurationService.getValue('timeline.excludeSources');
if (oldExcludedSourcesSetting) {
configurationService.updateValue('timeline.excludeSources', undefined);
const oldSettingString = JSON.stringify(oldExcludedSourcesSetting);
this.timelineExcludeSourcesContext.set(oldSettingString);
// Update the storage service with the setting
storageService.store('timeline.excludeSources', oldSettingString, StorageScope.PROFILE, StorageTarget.USER);
}
const excludedSourcesString = storageService.get('timeline.excludeSources', StorageScope.PROFILE, '[]');
this.timelineExcludeSourcesContext.set(excludedSourcesString);
this.excludedSources = new Set(JSON.parse(excludedSourcesString));
Expand Down

0 comments on commit 69c3625

Please sign in to comment.