# debugger: Add support for inline value hints \(\#28656\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/218496744ce03c040438907bdb632aa37ced118f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 218496744ce03c040438907bdb632aa37ced118f

Requested commit: 218496744ce03c040438907bdb632aa37ced118f

Commit: 218496744ce03c040438907bdb632aa37ced118f

Tree: b9d3a0febdc2dbffe8066294e6b9417e374e0db7

Author: Remco Smits

Committer: GitHub

## Message

```
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>
```

## Parents

- [d095bab8ad584a9e99697e3ad4e69948af0daf33](https://git.cafe/gitcafe/zed/commit/d095bab8ad584a9e99697e3ad4e69948af0daf33?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/218496744ce03c040438907bdb632aa37ced118f?format=markdown)
