fix warnings
This commit is contained in:
@@ -14,7 +14,7 @@ internal sealed class CustomSemanticTokensVisitor : SyntaxWalker
|
|||||||
private readonly ISemanticTokensLegendService _semanticTokensLegend;
|
private readonly ISemanticTokensLegendService _semanticTokensLegend;
|
||||||
private readonly bool _colorCodeBackground;
|
private readonly bool _colorCodeBackground;
|
||||||
|
|
||||||
private bool _addRazorCodeModifier;
|
private bool _addRazorCodeModifier = false;
|
||||||
|
|
||||||
private CustomSemanticTokensVisitor(List<SemanticRange> semanticRanges, RazorCodeDocument razorCodeDocument, TextSpan range, ISemanticTokensLegendService semanticTokensLegend, bool colorCodeBackground)
|
private CustomSemanticTokensVisitor(List<SemanticRange> semanticRanges, RazorCodeDocument razorCodeDocument, TextSpan range, ISemanticTokensLegendService semanticTokensLegend, bool colorCodeBackground)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ using SharpIDE.Application.Features.SolutionDiscovery;
|
|||||||
|
|
||||||
namespace SharpIDE.Application.Features.Debugging;
|
namespace SharpIDE.Application.Features.Debugging;
|
||||||
|
|
||||||
|
#pragma warning disable VSTHRD101
|
||||||
public class DebuggingService
|
public class DebuggingService
|
||||||
{
|
{
|
||||||
private DebugProtocolHost _debugProtocolHost = null!;
|
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
|
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.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));
|
responder.SetResponse(new HandshakeResponse(signatureResponse));
|
||||||
});
|
});
|
||||||
debugProtocolHost.RegisterEventType<StoppedEvent>(async void (@event) =>
|
debugProtocolHost.RegisterEventType<StoppedEvent>(async void (@event) =>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace SharpIDE.Application.Features.Debugging.Experimental.VsDbg;
|
|||||||
|
|
||||||
public static class DebuggerHandshakeSigner
|
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
|
// if the chosen debugger requires signing a handshake, implement it here
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
|||||||
Reference in New Issue
Block a user