Commit 2674e5a
committed
[lldb-dap] Improving 'variables' hover requests.
This partially fixes #146559.
When hovering over variables while debugging with lldb-dap we are
receiving hover requests that include symbols.
For example, if you have:
```
MyClass *foo;
```
and hover over 'foo', the request will contain the expression
`expression="*foo"` and we're evaluating the dereference, so you end up
with different hover results vs the variables view.
A more complete solution would be to implement an
[EvaluatableExpressionProvider](https://code.visualstudio.com/api/references/vscode-api#EvaluatableExpressionProvider)
in the VS Code extension.
For example, if you have a declaration without any whitespace like
```c
char*foo = "bar";
```
And try to hover over 'foo', the request will be `expression="char*foo"`.1 parent 00e071d commit 2674e5a
File tree
2 files changed
+11
-1
lines changed- lldb
- test/API/tools/lldb-dap/memory
- tools/lldb-dap/Handler
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
184 | 193 | | |
| 194 | + | |
185 | 195 | | |
186 | 196 | | |
187 | 197 | | |
| |||
0 commit comments