SCM - disable context menu on incoming/outgoing changes nodes (#274355)

This commit is contained in:
Ladislau Szomoru
2025-10-31 14:44:45 +00:00
committed by GitHub
parent e82ab3b366
commit e69a45d855
2 changed files with 6 additions and 1 deletions
@@ -240,7 +240,7 @@ export function renderSCMHistoryItemGraph(historyItemViewModel: ISCMHistoryItemV
const innerCircle = drawCircle(circleIndex, CIRCLE_STROKE_WIDTH, CIRCLE_RADIUS + 5);
svg.append(innerCircle);
const dashedCircle = drawDashedCircle(circleIndex, CIRCLE_RADIUS + 1, CIRCLE_STROKE_WIDTH, circleColor);
const dashedCircle = drawDashedCircle(circleIndex, CIRCLE_RADIUS + 1, CIRCLE_STROKE_WIDTH - 1, circleColor);
svg.append(dashedCircle);
} else {
if (historyItem.parentIds.length > 1) {
@@ -2033,6 +2033,11 @@ export class SCMHistoryViewPane extends ViewPane {
if (isSCMHistoryItemViewModelTreeElement(element)) {
// HistoryItem
if (element.historyItemViewModel.kind === 'incoming-changes' || element.historyItemViewModel.kind === 'outgoing-changes') {
// Incoming/Outgoing changes node does not support any context menu actions
return;
}
this._contextMenuDisposables.value = new DisposableStore();
const historyProvider = element.repository.provider.historyProvider.get();