Skip to content

Commit 6c4ef48

Browse files
authored
SCM - fix issue related to refreshing the history graph (microsoft#223602)
* SCM - fix issue related to refreshing the history graph * Remove unused import
1 parent 64b7b6d commit 6c4ef48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/workbench/api/browser/mainThreadSCM.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { IModelService } from 'vs/editor/common/services/model';
2727
import { ITextModelContentProvider, ITextModelService } from 'vs/editor/common/services/resolverService';
2828
import { Schemas } from 'vs/base/common/network';
2929
import { ITextModel } from 'vs/editor/common/model';
30-
import { structuralEquals } from 'vs/base/common/equals';
3130

3231
function getIconFromIconDto(iconDto?: UriComponents | { light: UriComponents; dark: UriComponents } | ThemeIcon): URI | { light: URI; dark: URI } | ThemeIcon | undefined {
3332
if (iconDto === undefined) {
@@ -164,7 +163,7 @@ class MainThreadSCMHistoryProvider implements ISCMHistoryProvider {
164163
readonly currentHistoryItemGroupId = derived<string | undefined>(this, reader => this.currentHistoryItemGroup.read(reader)?.id);
165164
readonly currentHistoryItemGroupName = derived<string | undefined>(this, reader => this.currentHistoryItemGroup.read(reader)?.name);
166165

167-
private readonly _currentHistoryItemGroup = observableValueOpts<ISCMHistoryItemGroup | undefined>({ owner: this, equalsFn: structuralEquals }, undefined);
166+
private readonly _currentHistoryItemGroup = observableValueOpts<ISCMHistoryItemGroup | undefined>({ owner: this, equalsFn: () => false }, undefined);
168167
get currentHistoryItemGroup() { return this._currentHistoryItemGroup; }
169168

170169
constructor(private readonly proxy: ExtHostSCMShape, private readonly handle: number) { }

0 commit comments

Comments
 (0)