Expand diagnostic excerpts using heuristics on syntactic information from TreeSitter (#21942)

This is quite experimental and untested in languages other than Rust.
It's written to attempt to do something sensible in many languages. Due
to its experimental nature, just releasing to staff, and so not
including it in release notes. Future release note might be "Improved
diagnostic excerpts by using syntactic info to determine the context
lines to show."

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2024-12-20 15:42:18 -07:00 committed by GitHub
parent ca9cee85e1
commit 9b2bc458e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 284 additions and 43 deletions

View file

@ -18,6 +18,7 @@ collections.workspace = true
ctor.workspace = true
editor.workspace = true
env_logger.workspace = true
feature_flags.workspace = true
gpui.workspace = true
language.workspace = true
log.workspace = true