mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Support select execution on History Table (#24464)
This commit is contained in:
@@ -105,6 +105,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
|
||||
ConnectionContextKey.Provider.notEqualsTo('KUSTO'),
|
||||
ConnectionContextKey.Provider.notEqualsTo('LOGANALYTICS'),
|
||||
ContextKeyExpr.or(
|
||||
TreeNodeContextKey.NodeType.isEqualTo(NodeType.HistoryTable),
|
||||
TreeNodeContextKey.NodeType.isEqualTo(NodeType.Table),
|
||||
TreeNodeContextKey.NodeType.isEqualTo(NodeType.View)
|
||||
)
|
||||
|
||||
@@ -28,7 +28,7 @@ export interface INodeContextValue {
|
||||
*/
|
||||
export class MssqlNodeContext extends Disposable {
|
||||
|
||||
static readonly canSelect = new Set([NodeType.Table, NodeType.View]);
|
||||
static readonly canSelect = new Set([NodeType.HistoryTable, NodeType.Table, NodeType.View]);
|
||||
static readonly canEditData = new Set([NodeType.Table]);
|
||||
static readonly canCreateOrDelete = new Set([NodeType.AggregateFunction, NodeType.PartitionFunction, NodeType.ScalarValuedFunction,
|
||||
NodeType.Schema, NodeType.StoredProcedure, NodeType.Table, NodeType.TableValuedFunction,
|
||||
|
||||
Reference in New Issue
Block a user