mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
SCM - rename incoming/outgoing menu contribution (#202068)
This commit is contained in:
parent
429c689545
commit
9808d4e655
|
@ -1765,14 +1765,14 @@
|
||||||
"group": "1_modification@3"
|
"group": "1_modification@3"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scm/incoming/historyItem/context": [
|
"scm/incomingChanges/historyItem/context": [
|
||||||
{
|
{
|
||||||
"command": "git.openCommit",
|
"command": "git.openCommit",
|
||||||
"when": "scmProvider == git && config.multiDiffEditor.experimental.enabled",
|
"when": "scmProvider == git && config.multiDiffEditor.experimental.enabled",
|
||||||
"group": "inline@1"
|
"group": "inline@1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scm/outgoing/historyItem/context": [
|
"scm/outgoingChanges/historyItem/context": [
|
||||||
{
|
{
|
||||||
"command": "git.openCommit",
|
"command": "git.openCommit",
|
||||||
"when": "scmProvider == git && config.multiDiffEditor.experimental.enabled",
|
"when": "scmProvider == git && config.multiDiffEditor.experimental.enabled",
|
||||||
|
|
|
@ -107,8 +107,8 @@ export class MenuId {
|
||||||
static readonly OpenEditorsContextShare = new MenuId('OpenEditorsContextShare');
|
static readonly OpenEditorsContextShare = new MenuId('OpenEditorsContextShare');
|
||||||
static readonly ProblemsPanelContext = new MenuId('ProblemsPanelContext');
|
static readonly ProblemsPanelContext = new MenuId('ProblemsPanelContext');
|
||||||
static readonly SCMInputBox = new MenuId('SCMInputBox');
|
static readonly SCMInputBox = new MenuId('SCMInputBox');
|
||||||
static readonly SCMIncomingHistoryItemContext = new MenuId('SCMIncomingHistoryItemContext');
|
static readonly SCMIncomingChangesHistoryItemContext = new MenuId('SCMIncomingChangesHistoryItemContext');
|
||||||
static readonly SCMOutgoingHistoryItemContext = new MenuId('SCMOutgoingHistoryItemContext');
|
static readonly SCMOutgoingChangesHistoryItemContext = new MenuId('SCMOutgoingChangesHistoryItemContext');
|
||||||
static readonly SCMChangeContext = new MenuId('SCMChangeContext');
|
static readonly SCMChangeContext = new MenuId('SCMChangeContext');
|
||||||
static readonly SCMResourceContext = new MenuId('SCMResourceContext');
|
static readonly SCMResourceContext = new MenuId('SCMResourceContext');
|
||||||
static readonly SCMResourceContextShare = new MenuId('SCMResourceContextShare');
|
static readonly SCMResourceContextShare = new MenuId('SCMResourceContextShare');
|
||||||
|
|
|
@ -274,7 +274,7 @@ export class SCMHistoryProviderMenus implements ISCMHistoryProviderMenus, IDispo
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const menuId = historyItemGroup.direction === 'incoming' ?
|
const menuId = historyItemGroup.direction === 'incoming' ?
|
||||||
MenuId.SCMIncomingHistoryItemContext : MenuId.SCMOutgoingHistoryItemContext;
|
MenuId.SCMIncomingChangesHistoryItemContext : MenuId.SCMOutgoingChangesHistoryItemContext;
|
||||||
|
|
||||||
result = this.menuService.createMenu(menuId, contextKeyService);
|
result = this.menuService.createMenu(menuId, contextKeyService);
|
||||||
this.historyItemMenus.set(historyItem, result);
|
this.historyItemMenus.set(historyItem, result);
|
||||||
|
|
|
@ -151,15 +151,15 @@ const apiMenus: IAPIMenu[] = [
|
||||||
proposed: 'contribSourceControlInputBoxMenu'
|
proposed: 'contribSourceControlInputBoxMenu'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'scm/incoming/historyItem/context',
|
key: 'scm/incomingChanges/historyItem/context',
|
||||||
id: MenuId.SCMIncomingHistoryItemContext,
|
id: MenuId.SCMIncomingChangesHistoryItemContext,
|
||||||
description: localize('menus.incomingHistoryItemContext', "The Source Control incoming history item context menu"),
|
description: localize('menus.incomingChangesHistoryItemContext', "The Source Control incoming changes history item context menu"),
|
||||||
proposed: 'contribSourceControlHistoryItemMenu'
|
proposed: 'contribSourceControlHistoryItemMenu'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'scm/outgoing/historyItem/context',
|
key: 'scm/outgoingChanges/historyItem/context',
|
||||||
id: MenuId.SCMOutgoingHistoryItemContext,
|
id: MenuId.SCMOutgoingChangesHistoryItemContext,
|
||||||
description: localize('menus.outgoingHistoryItemContext', "The Source Control outgoing history item context menu"),
|
description: localize('menus.outgoingChangesHistoryItemContext', "The Source Control outgoing changes history item context menu"),
|
||||||
proposed: 'contribSourceControlHistoryItemMenu'
|
proposed: 'contribSourceControlHistoryItemMenu'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// empty placeholder declaration for the `scm/historyItem/context`-menu contribution point
|
// empty placeholder declaration for the `scm/incomingChanges/historyItem/context`-menu contribution point
|
||||||
|
// empty placeholder declaration for the `scm/outgoingChanges/historyItem/context`-menu contribution point
|
||||||
// https://github.com/microsoft/vscode/issues/201997
|
// https://github.com/microsoft/vscode/issues/201997
|
||||||
|
|
Loading…
Reference in a new issue