mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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('KUSTO'),
|
||||||
ConnectionContextKey.Provider.notEqualsTo('LOGANALYTICS'),
|
ConnectionContextKey.Provider.notEqualsTo('LOGANALYTICS'),
|
||||||
ContextKeyExpr.or(
|
ContextKeyExpr.or(
|
||||||
|
TreeNodeContextKey.NodeType.isEqualTo(NodeType.HistoryTable),
|
||||||
TreeNodeContextKey.NodeType.isEqualTo(NodeType.Table),
|
TreeNodeContextKey.NodeType.isEqualTo(NodeType.Table),
|
||||||
TreeNodeContextKey.NodeType.isEqualTo(NodeType.View)
|
TreeNodeContextKey.NodeType.isEqualTo(NodeType.View)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export interface INodeContextValue {
|
|||||||
*/
|
*/
|
||||||
export class MssqlNodeContext extends Disposable {
|
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 canEditData = new Set([NodeType.Table]);
|
||||||
static readonly canCreateOrDelete = new Set([NodeType.AggregateFunction, NodeType.PartitionFunction, NodeType.ScalarValuedFunction,
|
static readonly canCreateOrDelete = new Set([NodeType.AggregateFunction, NodeType.PartitionFunction, NodeType.ScalarValuedFunction,
|
||||||
NodeType.Schema, NodeType.StoredProcedure, NodeType.Table, NodeType.TableValuedFunction,
|
NodeType.Schema, NodeType.StoredProcedure, NodeType.Table, NodeType.TableValuedFunction,
|
||||||
|
|||||||
Reference in New Issue
Block a user