open file from diagnostic

This commit is contained in:
Matt Parker
2025-08-17 12:34:54 +10:00
parent 1856b0b2db
commit 5bd6b64019
4 changed files with 28 additions and 4 deletions

View File

@@ -4,6 +4,11 @@ namespace SharpIDE.Application.Features.SolutionDiscovery;
public static class TreeMapperV2
{
public static IEnumerable<SharpIdeFile> GetAllFiles(this SharpIdeFolder folder)
{
return folder.Files
.Concat(folder.Folders.SelectMany(sub => sub.GetAllFiles()));
}
public static List<SharpIdeFolder> GetSubFolders(string csprojectPath)
{
var projectDirectory = Path.GetDirectoryName(csprojectPath)!;