fix error
This commit is contained in:
@@ -4,7 +4,7 @@ using Microsoft.VisualStudio.SolutionPersistence.Serializer;
|
|||||||
|
|
||||||
namespace SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
|
namespace SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
|
||||||
|
|
||||||
public class VsPersistenceMapper
|
public static class VsPersistenceMapper
|
||||||
{
|
{
|
||||||
public static async Task<SharpIdeSolutionModel> GetSolutionModel(string solutionFilePath, CancellationToken cancellationToken = default)
|
public static async Task<SharpIdeSolutionModel> GetSolutionModel(string solutionFilePath, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
@@ -40,7 +40,7 @@ public class VsPersistenceMapper
|
|||||||
Projects = folderModel.Projects.Select(GetSharpIdeProjectModel).ToList()
|
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)
|
CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
var serializer = SolutionSerializers.GetSerializerByMoniker(solutionFilePath);
|
var serializer = SolutionSerializers.GetSerializerByMoniker(solutionFilePath);
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
public string FilePath { get; set; } = null!;
|
public string FilePath { get; set; } = null!;
|
||||||
|
|
||||||
private string? _fileContent;
|
private string? _fileContent;
|
||||||
private string? _unsavedFileContent;
|
|
||||||
private bool _unsavedEdits = false;
|
private bool _unsavedEdits = false;
|
||||||
|
|
||||||
StandaloneCodeEditor _codeEditorRef = null!;
|
StandaloneCodeEditor _codeEditorRef = null!;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
_solutionFilePath = solutionFilePath;
|
_solutionFilePath = solutionFilePath;
|
||||||
|
|
||||||
await BuildService.BuildSolutionAsync(_solutionFilePath);
|
await BuildService.BuildSolutionAsync(_solutionFilePath);
|
||||||
var solutionModel = await RoslynTest.Analyse(_solutionFilePath);
|
var solutionModel = await VsPersistenceMapper.GetSolutionModel(_solutionFilePath);
|
||||||
_solutionModel = solutionModel;
|
_solutionModel = solutionModel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user