fix warnings

This commit is contained in:
Matt Parker
2025-10-17 19:06:38 +10:00
parent 2f0893b8fc
commit 370c158010
3 changed files with 5 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ internal sealed class CustomSemanticTokensVisitor : SyntaxWalker
private readonly ISemanticTokensLegendService _semanticTokensLegend;
private readonly bool _colorCodeBackground;
private bool _addRazorCodeModifier;
private bool _addRazorCodeModifier = false;
private CustomSemanticTokensVisitor(List<SemanticRange> semanticRanges, RazorCodeDocument razorCodeDocument, TextSpan range, ISemanticTokensLegendService semanticTokensLegend, bool colorCodeBackground)
{

View File

@@ -11,6 +11,7 @@ using SharpIDE.Application.Features.SolutionDiscovery;
namespace SharpIDE.Application.Features.Debugging;
#pragma warning disable VSTHRD101
public class DebuggingService
{
private DebugProtocolHost _debugProtocolHost = null!;
@@ -61,9 +62,9 @@ public class DebuggingService
await Task.CompletedTask.ConfigureAwait(ConfigureAwaitOptions.ForceYielding); // The VS Code Debug Protocol throws if you try to send a request from the dispatcher thread
debugProtocolHost.SendRequestSync(new DisconnectRequest());
});
debugProtocolHost.RegisterClientRequestType<HandshakeRequest, HandshakeArguments, HandshakeResponse>(responder =>
debugProtocolHost.RegisterClientRequestType<HandshakeRequest, HandshakeArguments, HandshakeResponse>(async void (responder) =>
{
var signatureResponse = DebuggerHandshakeSigner.Sign(responder.Arguments.Value);
var signatureResponse = await DebuggerHandshakeSigner.Sign(responder.Arguments.Value);
responder.SetResponse(new HandshakeResponse(signatureResponse));
});
debugProtocolHost.RegisterEventType<StoppedEvent>(async void (@event) =>

View File

@@ -5,7 +5,7 @@ namespace SharpIDE.Application.Features.Debugging.Experimental.VsDbg;
public static class DebuggerHandshakeSigner
{
public static string Sign(string input)
public static async Task<string> Sign(string input)
{
// if the chosen debugger requires signing a handshake, implement it here
throw new NotImplementedException();