Skip to content

Commit

Permalink
remove custom CapabilitiesEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Jun 11, 2022
1 parent 5ab37ae commit 8c09cd2
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/OpenDebugAD7/AD7DebugSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,6 @@

namespace OpenDebugAD7
{
// not in the DAP dll yet
internal sealed class CapabilitiesEvent : DebugEvent
{
internal CapabilitiesEvent()
: base("capabilities")
{
}

[JsonProperty("capabilities")]
internal InitializeResponse Capabilities;
}

internal sealed class AD7DebugSession : DebugAdapterBase, IDebugPortNotify2, IDebugEventCallback2
{
// This is a general purpose lock. Don't hold it across long operations.
Expand Down Expand Up @@ -1044,7 +1032,7 @@ private void UpdateCapabilities()
m_canReverse = canReverse;
Protocol.SendEvent(new CapabilitiesEvent()
{
Capabilities = new InitializeResponse()
Capabilities = new Capabilities()
{
SupportsStepBack = canReverse,
ExceptionBreakpointFilters = null, // FIXME: this is just to prevent unwanted response entries
Expand Down

0 comments on commit 8c09cd2

Please sign in to comment.