file change handling

This commit is contained in:
Matt Parker
2025-10-17 20:33:54 +10:00
parent ffdadf7a79
commit 882382bbd4
6 changed files with 20 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ public partial class IdeRoot : Control
Singletons.FileWatcher = new IdeFileWatcher();
Singletons.FileManager = new IdeFileManager();
Singletons.FileExternalChangeHandler = new IdeFileExternalChangeHandler();
Singletons.FileChangeHandler = new IdeFileChangeHandler();
Singletons.FileSavedToDiskHandler = new IdeFileSavedToDiskHandler();
}
public override void _Ready()
@@ -129,7 +129,7 @@ public partial class IdeRoot : Control
_searchWindow.Solution = solutionModel;
_searchAllFilesWindow.Solution = solutionModel;
Singletons.FileExternalChangeHandler.SolutionModel = solutionModel;
Singletons.FileChangeHandler.SolutionModel = solutionModel;
Singletons.FileSavedToDiskHandler.SolutionModel = solutionModel;
Callable.From(_solutionExplorerPanel.RepopulateTree).CallDeferred();
RoslynAnalysis.StartSolutionAnalysis(solutionModel);
Singletons.FileWatcher.StartWatching(solutionModel);

View File

@@ -13,6 +13,6 @@ public static class Singletons
public static IdeFileWatcher FileWatcher { get; set; } = null!;
public static IdeFileManager FileManager { get; set; } = null!;
public static IdeFileExternalChangeHandler FileExternalChangeHandler { get; set; } = null!;
public static IdeFileChangeHandler FileChangeHandler { get; set; } = null!;
public static IdeFileSavedToDiskHandler FileSavedToDiskHandler { get; set; } = null!;
public static AppState AppState { get; set; } = null!;
}