From 24107a2d5579994654ca9404165fc70cbb0ecfca Mon Sep 17 00:00:00 2001 From: Sergei Druzhkov Date: Mon, 16 Mar 2026 11:52:31 +0300 Subject: [PATCH] feat: Add function to BreakpointModeApplicability enum --- debugAdapterProtocol.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/debugAdapterProtocol.json b/debugAdapterProtocol.json index 814e3b9..58f55c7 100644 --- a/debugAdapterProtocol.json +++ b/debugAdapterProtocol.json @@ -4058,6 +4058,10 @@ "hitCondition": { "type": "string", "description": "An expression that controls how many hits of the breakpoint are ignored.\nThe debug adapter is expected to interpret the expression as needed.\nThe attribute is only honored by a debug adapter if the corresponding capability `supportsHitConditionalBreakpoints` is true." + }, + "mode": { + "type": "string", + "description": "The mode of this breakpoint. If defined, this must be one of the `breakpointModes` the debug adapter advertised in its `Capabilities`." } }, "required": [ "name" ] @@ -4604,12 +4608,13 @@ }, "BreakpointModeApplicability": { "type": "string", - "_enum": ["source", "exception", "data", "instruction"], + "_enum": ["source", "exception", "data", "instruction", "function"], "enumDescriptions": [ "In `SourceBreakpoint`s", "In exception breakpoints applied in the `ExceptionFilterOptions`", "In data breakpoints requested in the `DataBreakpointInfo` request", - "In `InstructionBreakpoint`s" + "In `InstructionBreakpoint`s", + "In `FunctionBreakpoint`s" ], "description": "Describes one or more type of breakpoint a `BreakpointMode` applies to. This is a non-exhaustive enumeration and may expand as future breakpoint types are added." }