Commit e3f41f6
Patch stack frames with source for VS Code auto-focus
VS Code auto-selects the top stack frame after a 'stopped' event only
if the frame has a 'source' reference — without one, VS Code shows the
frame in the Call Stack panel but never selects it, so scopes/variables
are never requested.
The runner doesn't set source on stack frames yet (the ADR plans to add
the workflow file as source later). Until then, inject a minimal
synthetic source with sourceReference pointing back to the frame ID and
presentationHint 'deemphasize' so VS Code auto-focuses the frame
without trying to render a fake file prominently.
This doesn't affect nvim-dap or other DAP clients that auto-select
frames regardless of source.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9be2c73 commit e3f41f6
1 file changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
155 | 162 | | |
156 | 163 | | |
157 | 164 | | |
| |||
220 | 227 | | |
221 | 228 | | |
222 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
0 commit comments