debugger: Add support for inline value hints (#28656)
This PR uses Tree Sitter to show inline values while a user is in a debug session. We went with Tree Sitter over the LSP Inline Values request because the LSP request isn't widely supported. Tree Sitter is easy for languages/extensions to add support to. Tree Sitter can compute the inline values locally, so there's no need to add extra RPC messages for Collab. Tree Sitter also gives Zed more control over how we want to show variables. There's still more work to be done after this PR, namely differentiating between global/local scoped variables, but it's a great starting point to start iteratively improving it. Release Notes: - N/A --------- Co-authored-by: Piotr Osiewicz <peterosiewicz@gmail.com> Co-authored-by: Anthony Eid <hello@anthonyeid.me> Co-authored-by: Cole Miller <m@cole-miller.net> Co-authored-by: Anthony <anthony@zed.dev> Co-authored-by: Kirill <kirill@zed.dev>
This commit is contained in:
co-authored by
Piotr Osiewicz
Anthony Eid
Cole Miller
Anthony
Kirill
parent
d095bab8ad
commit
218496744c
@@ -0,0 +1,5 @@
|
||||
(assignment
|
||||
left: (identifier) @debug_variable)
|
||||
|
||||
(function_definition
|
||||
parameters: (parameters (identifier) @debug_variable))
|
||||
Reference in New Issue
Block a user