You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DAP: Terminate Thread in IntelliJ's own Threads view, on 2025.3 and later #2179
#2153 added "Terminate Thread" (DAP.TerminateThread) to the context menu of the DAP session's own Threads tab, for #2113. #2113 also asked, as an optional part, for it in the context menu of IntelliJ's own Threads view, XDebugger.Threads.View.Popup. #2153 left this out, because that group exists in 2025.3 and 2026.3 but not in 2024.2,
the oldest IntelliJ that LSP4IJ supports.
Today
plugin.xml can't add the action to XDebugger.Threads.View.Popup with <add-to-group>: on 2024.2 the group doesn't
exist. #2042, which moves the minimum to 2025.1 for 0.31.0, doesn't change that either.
How it could be done
One of:
Add it from a descriptor that only 2025.3 and later load. For example, an optional <depends config-file=…> on
a module or plugin that only exists from 2025.3 on. This needs a check of which module that would be.
Add it at startup when the group exists:ActionManager.getAction("XDebugger.Threads.View.Popup"), and if it is
a DefaultActionGroup, add the action to it. Nothing happens on 2024.2.
In both cases the action needs the thread of the row that was clicked in IntelliJ's Threads view. How that view gives
it to its actions (data keys, the selected XExecutionStack) needs a look in 2025.3 and 2026.3, also in the split
debugger.
Test
On 2025.3 and IU 2026.3 (ci.yml runs both): the group holds the action, and on a DAP execution stack it sends terminateThreads with that thread's ID. On 2024.2: the plugin loads without errors and nothing is added.
How this is done depends on the minimum IntelliJ version of 0.31.0, which is asked in #2038:
With 2025.3 as the minimum, it's a plain <add-to-group group-id="XDebugger.Threads.View.Popup"> in plugin.xml.
With 2025.1, as planned in build: require IntelliJ 2025.1 #2042, 2025.1 and 2025.2 lack XDebugger.Threads.View.Popup as well. So the action is still added at startup when the group exists, or from a descriptor that only 2025.3 and later load, as described above.
Either way, how IntelliJ's Threads view gives the clicked thread to its actions needs a look first.
Activity
lagergren commentedon Nov 24, 2026
How this is done depends on the minimum IntelliJ version of 0.31.0, which is asked in #2038:
<add-to-group group-id="XDebugger.Threads.View.Popup">inplugin.xml.XDebugger.Threads.View.Popupas well. So the action is still added at startup when the group exists, or from a descriptor that only 2025.3 and later load, as described above.Either way, how IntelliJ's Threads view gives the clicked thread to its actions needs a look first.