maximise on open sln
This commit is contained in:
@@ -35,9 +35,10 @@ public static class RoslynAnalysis
|
|||||||
private static SharpIdeSolutionModel? _sharpIdeSolutionModel;
|
private static SharpIdeSolutionModel? _sharpIdeSolutionModel;
|
||||||
private static HashSet<CodeFixProvider> _codeFixProviders = [];
|
private static HashSet<CodeFixProvider> _codeFixProviders = [];
|
||||||
private static HashSet<CodeRefactoringProvider> _codeRefactoringProviders = [];
|
private static HashSet<CodeRefactoringProvider> _codeRefactoringProviders = [];
|
||||||
private static TaskCompletionSource _solutionLoadedTcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
|
private static TaskCompletionSource _solutionLoadedTcs = null!;
|
||||||
public static void StartSolutionAnalysis(SharpIdeSolutionModel solutionModel)
|
public static void StartSolutionAnalysis(SharpIdeSolutionModel solutionModel)
|
||||||
{
|
{
|
||||||
|
_solutionLoadedTcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
|
||||||
_ = Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|||||||
@@ -72,6 +72,10 @@ public partial class IdeWindow : Control
|
|||||||
RemoveChild(_ideRoot);
|
RemoveChild(_ideRoot);
|
||||||
_ideRoot.QueueFree();
|
_ideRoot.QueueFree();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GetWindow().Mode = Window.ModeEnum.Maximized;
|
||||||
|
}
|
||||||
_ideRoot = ideRoot;
|
_ideRoot = ideRoot;
|
||||||
AddChild(ideRoot);
|
AddChild(ideRoot);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -16,5 +16,4 @@ oversampling_override = 1.0
|
|||||||
title = "Open Solution"
|
title = "Open Solution"
|
||||||
initial_position = 2
|
initial_position = 2
|
||||||
visible = false
|
visible = false
|
||||||
wrap_controls = true
|
|
||||||
popup_window = true
|
popup_window = true
|
||||||
|
|||||||
Reference in New Issue
Block a user