mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -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>
|
/// </summary>
|
||||||
public string NodePath { get; set; }
|
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>
|
/// <summary>
|
||||||
/// The type of the node - for example Server, Database, Folder, Table
|
/// The type of the node - for example Server, Database, Folder, Table
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -229,6 +229,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
|
|||||||
IsLeaf = this.IsAlwaysLeaf,
|
IsLeaf = this.IsAlwaysLeaf,
|
||||||
Label = this.Label,
|
Label = this.Label,
|
||||||
NodePath = this.GetNodePath(),
|
NodePath = this.GetNodePath(),
|
||||||
|
ParentNodePath = this.Parent?.GetNodePath() ?? "",
|
||||||
NodeType = this.NodeType,
|
NodeType = this.NodeType,
|
||||||
Metadata = this.ObjectMetadata,
|
Metadata = this.ObjectMetadata,
|
||||||
NodeStatus = this.NodeStatus,
|
NodeStatus = this.NodeStatus,
|
||||||
|
|||||||
Reference in New Issue
Block a user