Skip to content

Commit d83591b

Browse files
committed
rename service
1 parent a1adb97 commit d83591b

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/SharpIDE.Application/DependencyInjection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static IServiceCollection AddApplication(this IServiceCollection services
4444
services.AddScoped<EditorCaretPositionService>();
4545
services.AddScoped<SharpIdeMetadataAsSourceService>();
4646
services.AddScoped<DotnetTemplateService>();
47-
services.AddScoped<VsPersistenceSolutionService>();
47+
services.AddScoped<SharpIdeSolutionService>();
4848
services.AddScoped<FileSystemService>();
4949
services.AddLogging();
5050
return services;

src/SharpIDE.Application/Features/SolutionDiscovery/VsPersistence/VsPersistenceSolutionService.cs renamed to src/SharpIDE.Application/Features/SolutionDiscovery/VsPersistence/SharpIdeSolutionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
99

10-
public class VsPersistenceSolutionService
10+
public class SharpIdeSolutionService
1111
{
1212
private SolutionModel? _vsSolution;
1313
private ISolutionSerializer? _solutionSerializer;

src/SharpIDE.Godot/Features/NewProject/TemplateComponent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public partial class TemplateComponent : VBoxContainer
3030
private ITemplateInfo _selectedTemplate = null!;
3131

3232
[Inject] private readonly DotnetTemplateService _dotnetTemplateService = null!;
33-
[Inject] private readonly VsPersistenceSolutionService _vsPersistenceSolutionService = null!;
33+
[Inject] private readonly SharpIdeSolutionService _sharpIdeSolutionService = null!;
3434

3535
public override void _Ready()
3636
{
@@ -63,7 +63,7 @@ public override void _Ready()
6363
await _dotnetTemplateService.ExecuteTemplate(_selectedTemplate, projectName, path, []);
6464
var projectFilePath = Path.Combine(path, $"{projectName}.csproj");
6565
Guard.Against.Null(SlnFolder);
66-
await _vsPersistenceSolutionService.AddProject(SlnFolder, projectName, projectFilePath);
66+
await _sharpIdeSolutionService.AddProject(SlnFolder, projectName, projectFilePath);
6767
});
6868
GetWindow().QueueFree();
6969
};

src/SharpIDE.Godot/IdeRoot.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public partial class IdeRoot : Control
5252
[Inject] private readonly SharpIdeRootFolderModificationService _rootFolderModificationService = null!;
5353
[Inject] private readonly SharpIdeSolutionAccessor _sharpIdeSolutionAccessor = null!;
5454
[Inject] private readonly IdeNavigationHistoryService _navigationHistoryService = null!;
55-
[Inject] private readonly VsPersistenceSolutionService _vsPersistenceSolutionService = null!;
55+
[Inject] private readonly SharpIdeSolutionService _sharpIdeSolutionService = null!;
5656
[Inject] private readonly ILogger<IdeRoot> _logger = null!;
5757

5858
public override void _EnterTree()
@@ -155,12 +155,12 @@ public void SetSlnFilePath(string path)
155155
GD.Print($"Selected: {path}");
156156
var timer = Stopwatch.StartNew();
157157
var sharpIdeRootFolder = await FileSystemService.GetSharpIdeRootFolderForSolutionAsync(path);
158-
var (solutionModel, vsSln, solutionSerializer) = await VsPersistenceSolutionService.ReadSolution(path, sharpIdeRootFolder);
158+
var (solutionModel, vsSln, solutionSerializer) = await SharpIdeSolutionService.ReadSolution(path, sharpIdeRootFolder);
159159
timer.Stop();
160160
await _nodeReadyTcs.Task;
161161
// Do not use injected services until after _nodeReadyTcs - Services aren't injected until _Ready
162162
_logger.LogInformation("Solution model fully created in {ElapsedMilliseconds} ms", timer.ElapsedMilliseconds);
163-
await _vsPersistenceSolutionService.LoadSolution(path, vsSln, solutionSerializer);
163+
await _sharpIdeSolutionService.LoadSolution(path, vsSln, solutionSerializer);
164164
_sharpIdeSolutionAccessor.SolutionModel = solutionModel;
165165
_sharpIdeSolutionAccessor.SolutionReadyTcs.SetResult();
166166
_solutionExplorerPanel.SolutionModel = solutionModel;

tests/SharpIDE.Application.IntegrationTests/Features/Analysis/RoslynAnalysisTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public async Task GetProjectDiagnostics_NoSolutionChanges_IsSubsequentlyCheaper(
3434
var logger = services.GetRequiredService<ILogger<RoslynAnalysis>>();
3535
var buildService = services.GetRequiredService<BuildService>();
3636
var analyzerFileWatcher = services.GetRequiredService<AnalyzerFileWatcher>();
37-
var vsPersistenceSolutionService = services.GetRequiredService<VsPersistenceSolutionService>();
37+
var vsPersistenceSolutionService = services.GetRequiredService<SharpIdeSolutionService>();
3838

3939
var roslynAnalysis = new RoslynAnalysis(logger, buildService, analyzerFileWatcher);
4040

4141
var slnFolderPath = @"C:\Users\Matthew\Documents\Git\SharpIDE\SharpIDE.slnx";
4242
var rootFolder = await FileSystemService.GetSharpIdeRootFolderForSolutionAsync(slnFolderPath);
43-
var (solutionModel, _, _) = await VsPersistenceSolutionService.ReadSolution(slnFolderPath, rootFolder, TestContext.Current.CancellationToken);
43+
var (solutionModel, _, _) = await SharpIdeSolutionService.ReadSolution(slnFolderPath, rootFolder, TestContext.Current.CancellationToken);
4444
var sharpIdeApplicationProject = solutionModel.AllProjects.Single(p => p.Name.Value == "SharpIDE.Application");
4545

4646
var timer = Stopwatch.StartNew();

0 commit comments

Comments
 (0)