Skip to content

Implement the DAP "invalidated" event #106745

@weinand

Description

@weinand

A new InvalidatedEvent has been added to the DAP:

/** Event message for 'invalidated' event type.
This event signals that some state in the debug adapter has changed and requires that the client needs to re-render the data snapshot previously requested.
Debug adapters do not have to emit this event for runtime changes like stopped or thread events because in that case the client refetches the new state anyway. But the event can be used for example to refresh the UI after rendering formatting has changed in the debug adapter.
This event should only be sent if the debug adapter has received a value true for the 'supportsInvalidatedEvent' capability of the 'initialize' request.
*/
export interface InvalidatedEvent extends Event {
// event: 'invalidated';
body: {
/** Optional set of logical areas that got invalidated. If this property is missing or empty, a single value 'all' is assumed. */
areas?: InvalidatedAreas[];
/** If specified, the client only needs to refetch data related to this thread. */
threadId?: number;
/** If specified, the client only needs to refetch data related to this stack frame (and the 'threadId' is ignored). */
stackFrameId?: number;
};
}

This feature request asks for handling the event in VS Code and sending the corresponding supportsInvalidatedEvent property in the initialize request.

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions