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:
@@ -1845,7 +1845,7 @@ impl Drop for QueryCursorHandle {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) trait ToTreeSitterPoint {
|
||||
pub trait ToTreeSitterPoint {
|
||||
fn to_ts_point(self) -> tree_sitter::Point;
|
||||
fn from_ts_point(point: tree_sitter::Point) -> Self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user