提交 1e77f1ee 编写于 作者: I isidor

fix compare commands

上级 fd08d32b
...@@ -240,13 +240,13 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, { ...@@ -240,13 +240,13 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
const compareResourceCommand = { const compareResourceCommand = {
id: COMPARE_RESOURCE_COMMAND_ID, id: COMPARE_RESOURCE_COMMAND_ID,
title: nls.localize('compareWithChosen', "Compare with Chosen") title: nls.localize('compareWithSelected', "Compare with Selected")
}; };
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, { MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
group: '3_compare', group: '3_compare',
order: 20, order: 20,
command: compareResourceCommand, command: compareResourceCommand,
when: ContextKeyExpr.and(ResourceContextKey.IsFile, ResourceSelectedForCompareContext) when: ContextKeyExpr.and(ResourceContextKey.HasResource, ResourceSelectedForCompareContext)
}); });
const selectForCompareCommand = { const selectForCompareCommand = {
...@@ -257,7 +257,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, { ...@@ -257,7 +257,7 @@ MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
group: '3_compare', group: '3_compare',
order: 30, order: 30,
command: selectForCompareCommand, command: selectForCompareCommand,
when: ResourceContextKey.IsFile when: ResourceContextKey.HasResource
}); });
MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, { MenuRegistry.appendMenuItem(MenuId.OpenEditorsContext, {
...@@ -307,7 +307,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { ...@@ -307,7 +307,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
id: NEW_FILE_COMMAND_ID, id: NEW_FILE_COMMAND_ID,
title: NEW_FILE_LABEL title: NEW_FILE_LABEL
}, },
when: ContextKeyExpr.and(ExplorerFolderContext) when: ExplorerFolderContext
}); });
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
...@@ -317,7 +317,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { ...@@ -317,7 +317,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
id: NEW_FOLDER_COMMAND_ID, id: NEW_FOLDER_COMMAND_ID,
title: NEW_FOLDER_LABEL title: NEW_FOLDER_LABEL
}, },
when: ContextKeyExpr.and(ExplorerFolderContext) when: ExplorerFolderContext
}); });
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { MenuRegistry.appendMenuItem(MenuId.ExplorerContext, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册