mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Add optional range parameter to SyntaxTreeParams
When range is provided, instead of showing the syntax for the whole file, we'll show the syntax tree for the given range.
This commit is contained in:
parent
17aaece6b3
commit
ac52d9a1f1
4 changed files with 148 additions and 5 deletions
|
@ -39,6 +39,7 @@ impl Request for SyntaxTree {
|
|||
#[serde(rename_all = "camelCase")]
|
||||
pub struct SyntaxTreeParams {
|
||||
pub text_document: TextDocumentIdentifier,
|
||||
pub range: Option<Range>,
|
||||
}
|
||||
|
||||
pub enum ExtendSelection {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue