display underline for diagnostics

This commit is contained in:
Matt Parker
2025-08-18 18:20:15 +10:00
parent c0c240cf0e
commit ef5a4c4a64
5 changed files with 76 additions and 21 deletions

View File

@@ -14,6 +14,17 @@ public interface IExpandableSharpIdeNode
public interface IChildSharpIdeNode
{
public IExpandableSharpIdeNode Parent { get; set; }
// TODO: Profile/redesign
public SharpIdeProjectModel? GetNearestProjectNode()
{
var current = this;
while (current is not SharpIdeProjectModel && current?.Parent is not null)
{
current = current.Parent as IChildSharpIdeNode;
}
return current as SharpIdeProjectModel;
}
}
public class SharpIdeSolutionModel : ISharpIdeNode, IExpandableSharpIdeNode