debugger handshake placeholder

This commit is contained in:
Matt Parker
2025-09-26 18:43:48 +10:00
parent 4e75a1a3e9
commit 8231800f65
3 changed files with 15 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ public class DebuggingService
});
debugProtocolHost.RegisterClientRequestType<HandshakeRequest, HandshakeArguments, HandshakeResponse>(responder =>
{
var signatureResponse = VsSigner.Sign(responder.Arguments.Value);
var signatureResponse = DebuggerHandshakeSigner.Sign(responder.Arguments.Value);
responder.SetResponse(new HandshakeResponse(signatureResponse));
});
debugProtocolHost.RegisterEventType<StoppedEvent>(async void (@event) =>

View File

@@ -0,0 +1,13 @@
using System.Text;
using CliWrap;
namespace SharpIDE.Application.Features.Debugging.Experimental.VsDbg;
public static class DebuggerHandshakeSigner
{
public static string Sign(string input)
{
// if the chosen debugger requires signing a handshake, implement it here
throw new NotImplementedException();
}
}

View File

@@ -18,6 +18,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CliWrap" />
<PackageReference Include="Microsoft.Diagnostics.NETCore.Client" PrivateAssets="all" />
<PackageReference Include="Microsoft.VisualStudio.Shared.VSCodeDebugProtocol" />
<!-- If any Microsoft.Build.*.dll (Excluding Locator) ends up in the output, it will be prioritised for loading by MSBuild Nodes -->