fix error

This commit is contained in:
Matt Parker
2025-07-31 23:10:17 +10:00
parent 7008258e6a
commit 5dc929f97a
3 changed files with 3 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ using Microsoft.VisualStudio.SolutionPersistence.Serializer;
namespace SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
public class VsPersistenceMapper
public static class VsPersistenceMapper
{
public static async Task<SharpIdeSolutionModel> GetSolutionModel(string solutionFilePath, CancellationToken cancellationToken = default)
{
@@ -40,7 +40,7 @@ public class VsPersistenceMapper
Projects = folderModel.Projects.Select(GetSharpIdeProjectModel).ToList()
};
public static async Task<IntermediateSolutionModel> GetIntermediateModel(string solutionFilePath,
private static async Task<IntermediateSolutionModel> GetIntermediateModel(string solutionFilePath,
CancellationToken cancellationToken = default)
{
var serializer = SolutionSerializers.GetSerializerByMoniker(solutionFilePath);

View File

@@ -23,7 +23,6 @@
public string FilePath { get; set; } = null!;
private string? _fileContent;
private string? _unsavedFileContent;
private bool _unsavedEdits = false;
StandaloneCodeEditor _codeEditorRef = null!;

View File

@@ -49,7 +49,7 @@
_solutionFilePath = solutionFilePath;
await BuildService.BuildSolutionAsync(_solutionFilePath);
var solutionModel = await RoslynTest.Analyse(_solutionFilePath);
var solutionModel = await VsPersistenceMapper.GetSolutionModel(_solutionFilePath);
_solutionModel = solutionModel;
}
}