mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 18:27:38 +01:00
SCM - disable context menu on incoming/outgoing changes nodes (#274355)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user