SCM - 💄 remove more of the history item group terminology (#228139)
parent
64dcee7906
commit
4ade36e5ca
|
@ -546,9 +546,9 @@
|
|||
"--vscode-scmGraph-foreground1",
|
||||
"--vscode-scmGraph-foreground2",
|
||||
"--vscode-scmGraph-foreground3",
|
||||
"--vscode-scmGraph-historyItemGroupBase",
|
||||
"--vscode-scmGraph-historyItemGroupLocal",
|
||||
"--vscode-scmGraph-historyItemGroupRemote",
|
||||
"--vscode-scmGraph-historyItemBaseRefColor",
|
||||
"--vscode-scmGraph-historyItemRefColor",
|
||||
"--vscode-scmGraph-historyItemRemoteRefColor",
|
||||
"--vscode-scmGraph-historyItemHoverAdditionsForeground",
|
||||
"--vscode-scmGraph-historyItemHoverDefaultLabelBackground",
|
||||
"--vscode-scmGraph-historyItemHoverDefaultLabelForeground",
|
||||
|
@ -881,4 +881,4 @@
|
|||
"--widget-color",
|
||||
"--text-link-decoration"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ export class SCMActiveRepositoryController extends Disposable implements IWorkbe
|
|||
Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository),
|
||||
() => this.scmService.repositories);
|
||||
|
||||
private readonly _activeRepositoryCurrentHistoryItemGroupName = derived(reader => {
|
||||
private readonly _activeRepositoryHistoryItemRefName = derived(reader => {
|
||||
const repository = this.scmViewService.activeRepository.read(reader);
|
||||
const historyProvider = repository?.provider.historyProvider.read(reader);
|
||||
const historyItemRef = historyProvider?.historyItemRef.read(reader);
|
||||
|
@ -109,9 +109,9 @@ export class SCMActiveRepositoryController extends Disposable implements IWorkbe
|
|||
|
||||
this._register(autorun(reader => {
|
||||
const repository = this.scmViewService.activeRepository.read(reader);
|
||||
const currentHistoryItemGroupName = this._activeRepositoryCurrentHistoryItemGroupName.read(reader);
|
||||
const historyItemRefName = this._activeRepositoryHistoryItemRefName.read(reader);
|
||||
|
||||
this._updateActiveRepositoryContextKeys(repository?.provider.name, currentHistoryItemGroupName);
|
||||
this._updateActiveRepositoryContextKeys(repository?.provider.name, historyItemRefName);
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
@ -766,10 +766,10 @@ class SCMHistoryViewModel extends Disposable {
|
|||
}
|
||||
|
||||
const limit = clamp(this._configurationService.getValue<number>('scm.graph.pageSize'), 1, 1000);
|
||||
const historyItemGroupIds = historyItemRefs.map(ref => ref.revision ?? ref.id);
|
||||
const historyItemRefIds = historyItemRefs.map(ref => ref.revision ?? ref.id);
|
||||
|
||||
const historyItems = await historyProvider.provideHistoryItems({
|
||||
historyItemRefs: historyItemGroupIds, limit, skip: existingHistoryItems.length
|
||||
historyItemRefs: historyItemRefIds, limit, skip: existingHistoryItems.length
|
||||
}) ?? [];
|
||||
|
||||
state = {
|
||||
|
|
Loading…
Reference in New Issue