microsoft / MIEngine

The Visual Studio MI Debug Engine ("MIEngine") provides an open-source Visual Studio Debugger extension that works with MI-enabled debuggers such as gdb and lldb.
MIT License
818 stars 218 forks source link

Add "sendInvalidate" request #1367

Closed sbobko closed 1 year ago

sbobko commented 2 years ago

This PR adds support for OpenDebugAD7 to handle sendInvalidate requests which will respond if it successfully fired an InvalidatedEvent to the UI.

Here is the schema:

"SendInvalidateRequest": {
    "allOf": [
        {
            "$ref": "#/definitions/Request"
        },
        {
            "type": "object",
            "properties": {
               "areas": {
                  "type": "array",
                  "description": "Set of logical areas that got invalidated. This property has a hint characteristic: a client can only be expected to make a 'best effort' in honoring the areas but there are no guarantees. If this property is missing, empty, or if values are not understood, the client should assume a single value `all`.",
                  "items": {
                     "$ref": "#/definitions/InvalidatedAreas"
                  }
               },
                "threadId": {
                    "type": "int",
                },
                "stackFrameId": {
                    "type": "int",
                },
            },
            "required": [
                "areas"
            ]
        }
    ]
},
iAbadia commented 1 year ago

I'm interested in having this PR merged

sbobko commented 1 year ago

Hello @iAbadia , Unfortunately, I'm busy right now and I can't spare the time. You can use the code for inspiration and make your own contribution.

iAbadia commented 1 year ago

Thanks @sbobko , I'll do that!