mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 17:24:17 -05:00
Adding output row and cost info to ep nodes. (#1635)
* Adding more rules for prop * Adding new output row count and cost info to ep nodes * Removing commented code
This commit is contained in:
@@ -40,6 +40,8 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
|
||||
ID = currentNode.ID,
|
||||
Type = currentNode.Operation.Image,
|
||||
Cost = currentNode.Cost,
|
||||
RowCountDisplayString = currentNode.GetRowCountDisplayString(),
|
||||
CostDisplayString = currentNode.GetNodeCostDisplayString(),
|
||||
SubTreeCost = currentNode.SubtreeCost,
|
||||
Description = currentNode.Description,
|
||||
Subtext = currentNode.GetDisplayLinesOfText(true),
|
||||
@@ -106,7 +108,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
|
||||
var complexProperty = prop.Value as ExpandableObjectWrapper;
|
||||
if (complexProperty == null)
|
||||
{
|
||||
if(!prop.IsBrowsable)
|
||||
if (!prop.IsBrowsable)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -165,7 +167,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
|
||||
}
|
||||
|
||||
public static List<TopOperationsDataItem> ParseTopOperationsData(Node currentNode)
|
||||
{
|
||||
{
|
||||
const string OBJECT_COLUMN_KEY = "Object";
|
||||
const string ESTIMATED_ROWS_COLUMN_KEY = "EstimateRows";
|
||||
const string ACTUAL_ROWS_COLUMN_KEY = "ActualRows";
|
||||
@@ -197,7 +199,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ExecutionPlan
|
||||
{
|
||||
ColumnName = SR.Object,
|
||||
DataType = PropertyValueDataType.String,
|
||||
DisplayValue = ((ExpandableObjectWrapper)currentNode[OBJECT_COLUMN_KEY]).DisplayName
|
||||
DisplayValue = ((ExpandableObjectWrapper)currentNode[OBJECT_COLUMN_KEY]).DisplayName
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user