microsoft / microsoft/debug-adapter-protocol

Support for avoiding source focus in "stopped" events

Open
#525 3 comments 0 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Jan 22, 2025.

under-discussion
Dominant language
HTML
Stars
1.8k
Forks
173
Avg merge
7d 7h
Merged PRs (30d)
2

Description

We have implemented a debug adapter for the Ballerina language and, we have a requirement to avoid the automatic focus on the source file that contains the debug hit when a "stopped" event occurs while retaining the ability to display variables and other debug-related information in the LHS debug panel.

We already tried using the preserveFocusHint flag in the "stopped" event, but this flag not only avoids opening the source file but also disables the display of variables in the left-hand side (LHS) debug panel.

Is there a recommended way to achieve this functionality with the current Debug Adapter Protocol (DAP) specification?
If not, can this feature be considered for future versions of the protocol?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.