From 51817f580e0574684927271997986cf501cfdb55 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Tue, 30 Sep 2025 19:29:53 +1000 Subject: [PATCH] maximise on open sln --- src/SharpIDE.Application/Features/Analysis/RoslynAnalysis.cs | 3 ++- src/SharpIDE.Godot/IdeWindow.cs | 4 ++++ src/SharpIDE.Godot/IdeWindow.tscn | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SharpIDE.Application/Features/Analysis/RoslynAnalysis.cs b/src/SharpIDE.Application/Features/Analysis/RoslynAnalysis.cs index f435e32..113577b 100644 --- a/src/SharpIDE.Application/Features/Analysis/RoslynAnalysis.cs +++ b/src/SharpIDE.Application/Features/Analysis/RoslynAnalysis.cs @@ -35,9 +35,10 @@ public static class RoslynAnalysis private static SharpIdeSolutionModel? _sharpIdeSolutionModel; private static HashSet _codeFixProviders = []; private static HashSet _codeRefactoringProviders = []; - private static TaskCompletionSource _solutionLoadedTcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + private static TaskCompletionSource _solutionLoadedTcs = null!; public static void StartSolutionAnalysis(SharpIdeSolutionModel solutionModel) { + _solutionLoadedTcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); _ = Task.Run(async () => { try diff --git a/src/SharpIDE.Godot/IdeWindow.cs b/src/SharpIDE.Godot/IdeWindow.cs index c4508ef..f0b16b2 100644 --- a/src/SharpIDE.Godot/IdeWindow.cs +++ b/src/SharpIDE.Godot/IdeWindow.cs @@ -72,6 +72,10 @@ public partial class IdeWindow : Control RemoveChild(_ideRoot); _ideRoot.QueueFree(); } + else + { + GetWindow().Mode = Window.ModeEnum.Maximized; + } _ideRoot = ideRoot; AddChild(ideRoot); }); diff --git a/src/SharpIDE.Godot/IdeWindow.tscn b/src/SharpIDE.Godot/IdeWindow.tscn index fa62fc5..84833c6 100644 --- a/src/SharpIDE.Godot/IdeWindow.tscn +++ b/src/SharpIDE.Godot/IdeWindow.tscn @@ -16,5 +16,4 @@ oversampling_override = 1.0 title = "Open Solution" initial_position = 2 visible = false -wrap_controls = true popup_window = true