[Lldb-commits] [lldb] [lldb-dap] Improving 'variables' hover requests. (PR #146773)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 14 07:32:59 PDT 2025


walter-erquinigo wrote:

I somehow think we shouldn't add this kind of heuristics in LLDB and instead add them in the VSCode extension at a per-language basis. Some language, like Mojo, allow you to write variables with potentially any character sequences, and they have different characters to signal dereference, for example. 
I strongly suggest to leave LLDB untouched and implement the EvaluatableExpressionProvider. When invoking EvaluatableExpressionProvider, it should be possible to ask VSCode which langauge it thinks the target source file is, and then based on it add these kind of heuristics in an extensible way, so that future contributors can add more rules to it.

https://github.com/llvm/llvm-project/pull/146773


More information about the lldb-commits mailing list