Fix for query select command text in manage tab for Kusto tables (#13916)

* Fix for text in manage tab for Kusto tables

* addressed comment

Co-authored-by: Monica Gupta <mogupt@microsoft.com>
This commit is contained in:
Monica Gupta
2021-01-06 12:59:18 -08:00
committed by GitHub
parent c8d17f1ee3
commit 4af333d362
2 changed files with 22 additions and 1 deletions

View File

@@ -256,7 +256,27 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerWidgetContext, {
id: commands.ExplorerScriptSelectAction.ID,
title: commands.ExplorerScriptSelectAction.LABEL
},
when: ContextKeyExpr.or(ItemContextKey.ItemType.isEqualTo('view'), ItemContextKey.ItemType.isEqualTo('table')),
when:
ContextKeyExpr.and(
ItemContextKey.ConnectionProvider.notEqualsTo('kusto'),
ContextKeyExpr.or(
ItemContextKey.ItemType.isEqualTo('view'),
ItemContextKey.ItemType.isEqualTo('table')
)
),
order: 2
});
MenuRegistry.appendMenuItem(MenuId.ExplorerWidgetContext, {
command: {
id: commands.ExplorerScriptSelectAction.ID,
title: commands.ExplorerScriptSelectAction.KUSTOLABEL
},
when:
ContextKeyExpr.and(
ItemContextKey.ConnectionProvider.isEqualTo('kusto'),
ItemContextKey.ItemType.isEqualTo('table')
),
order: 2
});