From 4a81b0c6b180f5419283cc14ebd1b3142dc671f7 Mon Sep 17 00:00:00 2001 From: cgettys-microsoft <67080058+cgettys-microsoft@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:47:54 -0700 Subject: [PATCH] Fix Programmability not being available for Fabric DW and Synapse SQL Serverless pools (#2407) --- .../ObjectExplorer/SmoModel/SmoTreeNodes.cs | 8 ++++---- .../ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodes.cs b/src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodes.cs index bf92e2b6d1..8547474e08 100644 --- a/src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodes.cs +++ b/src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodes.cs @@ -910,7 +910,7 @@ protected override void OnExpandPopulateFolders(IList currentChildren, NodeValue = SR.SchemaHierarchy_Programmability, NodeTypeId = NodeTypes.Programmability, IsSystemObject = false, - ValidFor = ValidForFlag.NotSqlDemand, + ValidFor = ValidForFlag.All, SortPriority = SmoTreeNode.NextSortPriority, }); currentChildren.Add(new FolderNode { @@ -1168,7 +1168,7 @@ protected override void OnExpandPopulateFolders(IList currentChildren, NodeValue = SR.SchemaHierarchy_Programmability, NodeTypeId = NodeTypes.ExpandableSchemaProgrammability, IsSystemObject = false, - ValidFor = ValidForFlag.NotSqlDemand, + ValidFor = ValidForFlag.All, SortPriority = SmoTreeNode.NextSortPriority, }); } @@ -1622,7 +1622,7 @@ protected override void OnExpandPopulateFolders(IList currentChildren, NodeValue = SR.SchemaHierarchy_Functions, NodeTypeId = NodeTypes.Functions, IsSystemObject = false, - ValidFor = ValidForFlag.NotSqlDemand, + ValidFor = ValidForFlag.All, SortPriority = SmoTreeNode.NextSortPriority, }); } @@ -1758,7 +1758,7 @@ protected override void OnExpandPopulateFolders(IList currentChildren, NodeValue = SR.SchemaHierarchy_Functions, NodeTypeId = NodeTypes.Functions, IsSystemObject = false, - ValidFor = ValidForFlag.NotSqlDemand, + ValidFor = ValidForFlag.All, SortPriority = SmoTreeNode.NextSortPriority, }); currentChildren.Add(new FolderNode { diff --git a/src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml b/src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml index a4aa1fd4cc..4b0e023bbd 100644 --- a/src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml +++ b/src/Microsoft.SqlTools.SqlCore/ObjectExplorer/SmoModel/SmoTreeNodesDefinition.xml @@ -153,7 +153,7 @@ - + @@ -165,7 +165,7 @@ --> - + @@ -329,7 +329,7 @@ - +