mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 17:22:42 -05:00
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:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user