nuget client v1
This commit is contained in:
@@ -18,6 +18,7 @@ public partial class BottomPanelManager : Panel
|
||||
{
|
||||
field = value;
|
||||
_problemsPanel.Solution = value;
|
||||
_nugetPanel.Solution = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using Godot;
|
||||
using SharpIDE.Application.Features.Nuget;
|
||||
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
|
||||
|
||||
namespace SharpIDE.Godot.Features.Nuget;
|
||||
|
||||
@@ -7,11 +9,21 @@ public partial class NugetPanel : Control
|
||||
private VBoxContainer _installedPackagesVboxContainer = null!;
|
||||
private VBoxContainer _implicitlyInstalledPackagesItemList = null!;
|
||||
private VBoxContainer _availablePackagesItemList = null!;
|
||||
|
||||
public SharpIdeSolutionModel? Solution { get; set; }
|
||||
|
||||
[Inject] private readonly NugetClientService _nugetClientService = null!;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_installedPackagesVboxContainer = GetNode<VBoxContainer>("%InstalledPackagesVBoxContainer");
|
||||
_implicitlyInstalledPackagesItemList = GetNode<VBoxContainer>("%ImplicitlyInstalledPackagesVBoxContainer");
|
||||
_availablePackagesItemList = GetNode<VBoxContainer>("%AvailablePackagesVBoxContainer");
|
||||
|
||||
_ = Task.GodotRun(async () =>
|
||||
{
|
||||
await Task.Delay(300);
|
||||
await _nugetClientService.Test(Solution!.DirectoryPath);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user