mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-20 17:24:00 -05:00
Fixed the issue with nodeType set to null for many sql objects in object explorer (#323)
* Fixed the issue with nodeType set to null for sql objects
This commit is contained in:
@@ -179,6 +179,12 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel
|
||||
{
|
||||
WriteLine(" var child = new SmoTreeNode();");
|
||||
WriteLine(" child.IsAlwaysLeaf = true;");
|
||||
if (type.EndsWith("s"))
|
||||
{
|
||||
var typeName = type.Substring(0, type.Length - 1);
|
||||
WriteLine(string.Format(" child.NodeType = \"{0}\";", typeName));
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user