mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
hide edit data and script as create (#11737)
This commit is contained in:
@@ -236,7 +236,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerWidgetContext, {
|
|||||||
id: ExplorerEditDataActionID,
|
id: ExplorerEditDataActionID,
|
||||||
title: EditDataAction.LABEL
|
title: EditDataAction.LABEL
|
||||||
},
|
},
|
||||||
when: ContextKeyExpr.and(ItemContextKey.ItemType.isEqualTo('table'), MssqlNodeContext.EngineEdition.notEqualsTo(DatabaseEngineEdition.SqlOnDemand.toString())),
|
when: ContextKeyExpr.and(ItemContextKey.ItemType.isEqualTo('table'), MssqlNodeContext.EngineEdition.notEqualsTo(DatabaseEngineEdition.SqlOnDemand.toString()), ItemContextKey.ConnectionProvider.notEqualsTo('kusto')),
|
||||||
order: 2
|
order: 2
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -296,7 +296,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerWidgetContext, {
|
|||||||
id: commands.ExplorerScriptCreateAction.ID,
|
id: commands.ExplorerScriptCreateAction.ID,
|
||||||
title: commands.ExplorerScriptCreateAction.LABEL
|
title: commands.ExplorerScriptCreateAction.LABEL
|
||||||
},
|
},
|
||||||
when: ItemContextKey.ItemType.notEqualsTo('database'),
|
when: ContextKeyExpr.and(ItemContextKey.ItemType.notEqualsTo('database'), ItemContextKey.ConnectionProvider.notEqualsTo('kusto')),
|
||||||
order: 2
|
order: 2
|
||||||
});
|
});
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user