microsoft / microsoft/vscode-java-debug
Debugger => Some variable content popup issues
未关闭
还没有人认领这个 Issue。
ai-triaged
enhancement
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
During debugging, VsCode has three quick possibilities to show the detailed content of variables (as far as I know):
- The file edit area: For each line the content of the variables in this line are shown which is very nice. With mouse hovering over this area a popup appears with a bigger, multiline view of these contents, which is even nicer. As far as I know, this is currently the only way to have a fast multiline content view during debugging.
I have found these issues with it:
- You can see in the image that the variables content goes over two lines. The popup appears by hovering both over the first line and the second. With the first line everything is fine, but when I trigger the popup from the second line the popup appears a bit higher as the mouse pointer (i.e. at the first line, which is the corresponding code line). If I then move the mouse in order to select some popup text or just want to scroll, the popup disappears immediately. You can go with the mouse 'into' the popup if it was triggered from the first line only
- It is currently impossible to select all text from the popup if the text doesn't fit into the area, i.e. there is a scrollbar. If I want to select with the mouse, the popup disappears if I move over the border of the popup instead of scrolling and selecting more text. If I want to select everything with 'ctrl+a', it selects the code inside the file edit area instead
- The toString() content of a variable is only shown if someone clicks on the 'click to expand' eye-button for this variable inside the variables view. It would be VERY useful if this button could also appear inside this popup. This is the button of the variables view:
- In the variables view: There also a popup appears. Sadly this is not multiline, the size can not be adjusted, it is only useful for really small content as numbers or small strings, and small content is shown directly inside the variable view anyway. It would be preferable to have the same or a similar popup as inside the edit area
- When hovering over a variable inside the file edit area: Here, the content is shown similar as in the variables view. It would be nice if there is a possibility to see multiline content also. E.g. with the same or similar popup as in 1.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 issue 描述的文件编辑区域、变量视图和变量悬停中复现 popup 行为。比较 popup 的位置、选择或滚动时的关闭行为、多行尺寸调整,以及缺失的 toString 展开控件。当受影响的 popup 一致地支持所请求的多行交互,并在适当的位置提供展开操作时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100