Extend StackFrame
to support longer description than name
#433
Labels
feature-request
Request for new features or functionality
Many DAP clients use the values in
name
when rendering info about a stack frame.There is no length limit on
name
, but empirically we found long strings don't work well in some DAP clients (VS Code). See the screenshots included in go-delve/delve#3323 (comment). When the go debug adapter includes both package path (corresponding to "module" in other languages) and the method name in thename
, it can produce a very long string.StackFrameFormat
was brought up while we were discussing how to surface both package and method name in the current VS Code UI (microsoft/vscode#193153). According to the conversation in #411, the debug adapter is responsible for formatting and producing the string based onStackFrameFormat
. Now where should this potentially long formatted string go?In the current spec, I cannot find any place other than
name
, and we are again back to the original problem. Some DAP clients cannot efficiently present a long stack frame name.What do you think about having an optional longer description field?
I think VS Code can potentially present the longer description in tooltip.
Other DAP clients can also choose to select
name
and the new longer description based on the need, instead of arbitrarily hiding or truncatingname
.The text was updated successfully, but these errors were encountered: