diff --git a/src/SharpIDE.Application/Features/Analysis/Razor/CustomSemanticTokensVisitor.cs b/src/SharpIDE.Application/Features/Analysis/Razor/CustomSemanticTokensVisitor.cs index b2042f8..0f51551 100644 --- a/src/SharpIDE.Application/Features/Analysis/Razor/CustomSemanticTokensVisitor.cs +++ b/src/SharpIDE.Application/Features/Analysis/Razor/CustomSemanticTokensVisitor.cs @@ -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 semanticRanges, RazorCodeDocument razorCodeDocument, TextSpan range, ISemanticTokensLegendService semanticTokensLegend, bool colorCodeBackground) { diff --git a/src/SharpIDE.Application/Features/Debugging/DebuggingService.cs b/src/SharpIDE.Application/Features/Debugging/DebuggingService.cs index 6755621..ec6435e 100644 --- a/src/SharpIDE.Application/Features/Debugging/DebuggingService.cs +++ b/src/SharpIDE.Application/Features/Debugging/DebuggingService.cs @@ -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(responder => + debugProtocolHost.RegisterClientRequestType(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(async void (@event) => diff --git a/src/SharpIDE.Application/Features/Debugging/Experimental/VsDbg/DebuggerHandshakeSigner.cs b/src/SharpIDE.Application/Features/Debugging/Experimental/VsDbg/DebuggerHandshakeSigner.cs index fc52786..7399c70 100644 --- a/src/SharpIDE.Application/Features/Debugging/Experimental/VsDbg/DebuggerHandshakeSigner.cs +++ b/src/SharpIDE.Application/Features/Debugging/Experimental/VsDbg/DebuggerHandshakeSigner.cs @@ -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 Sign(string input) { // if the chosen debugger requires signing a handshake, implement it here throw new NotImplementedException();