another
This commit is contained in:
@@ -33,7 +33,7 @@ public sealed class IdeFileWatcher(ILogger<IdeFileWatcher> logger) : IDisposable
|
|||||||
fileWatcher.OnCreated += OnEvent;
|
fileWatcher.OnCreated += OnEvent;
|
||||||
fileWatcher.OnDeleted += OnEvent;
|
fileWatcher.OnDeleted += OnEvent;
|
||||||
fileWatcher.OnRenamed += OnEvent;
|
fileWatcher.OnRenamed += OnEvent;
|
||||||
fileWatcher.OnError += static (s, e) => Console.WriteLine($"FileSystemWatcher: Error - {e.GetException().Message}");
|
fileWatcher.OnError += (s, e) => _logger.LogError(e.GetException(), "FileSystemWatcher: Error");
|
||||||
|
|
||||||
fileWatcher.Start();
|
fileWatcher.Start();
|
||||||
_fileWatcher = fileWatcher;
|
_fileWatcher = fileWatcher;
|
||||||
|
|||||||
@@ -141,8 +141,9 @@ public partial class IdeRoot : Control
|
|||||||
var timer = Stopwatch.StartNew();
|
var timer = Stopwatch.StartNew();
|
||||||
var solutionModel = await VsPersistenceMapper.GetSolutionModel(path); // TODO: Probably refactor into a DI Service
|
var solutionModel = await VsPersistenceMapper.GetSolutionModel(path); // TODO: Probably refactor into a DI Service
|
||||||
timer.Stop();
|
timer.Stop();
|
||||||
_logger.LogInformation("Solution model fully created in {ElapsedMilliseconds} ms", timer.ElapsedMilliseconds);
|
|
||||||
await _nodeReadyTcs.Task;
|
await _nodeReadyTcs.Task;
|
||||||
|
// Do not use injected services until after _nodeReadyTcs - Services aren't injected until _Ready
|
||||||
|
_logger.LogInformation("Solution model fully created in {ElapsedMilliseconds} ms", timer.ElapsedMilliseconds);
|
||||||
_solutionExplorerPanel.SolutionModel = solutionModel;
|
_solutionExplorerPanel.SolutionModel = solutionModel;
|
||||||
_codeEditorPanel.Solution = solutionModel;
|
_codeEditorPanel.Solution = solutionModel;
|
||||||
_bottomPanelManager.Solution = solutionModel;
|
_bottomPanelManager.Solution = solutionModel;
|
||||||
|
|||||||
Reference in New Issue
Block a user