mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Expose parent node path of tree node (#1949)
* expose parent node path * add comments
This commit is contained in:
@@ -25,6 +25,12 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Contracts
|
||||
/// </summary>
|
||||
public string NodePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The path of the parent node. This is going to be used by the client side to determine the parent node.
|
||||
/// We are not referencing the parent node directly because the information needs to be passed between processes.
|
||||
/// </summary>
|
||||
public string ParentNodePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The type of the node - for example Server, Database, Folder, Table
|
||||
/// </summary>
|
||||
|
||||
@@ -229,6 +229,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
|
||||
IsLeaf = this.IsAlwaysLeaf,
|
||||
Label = this.Label,
|
||||
NodePath = this.GetNodePath(),
|
||||
ParentNodePath = this.Parent?.GetNodePath() ?? "",
|
||||
NodeType = this.NodeType,
|
||||
Metadata = this.ObjectMetadata,
|
||||
NodeStatus = this.NodeStatus,
|
||||
|
||||
Reference in New Issue
Block a user