diff options
author | Ville Penttinen <[email protected]> | 2019-03-03 10:02:55 +0000 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-03-03 17:49:50 +0000 |
commit | ac52d9a1f1a94e2c836c8a04a316f6454936a79a (patch) | |
tree | bf0e217ed101a32c1597fb6ed0e20fc755954d2c /crates/ra_lsp_server/src/req.rs | |
parent | 17aaece6b39c2fb525be0eccce4626fc622e8236 (diff) |
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.
Diffstat (limited to 'crates/ra_lsp_server/src/req.rs')
-rw-r--r-- | crates/ra_lsp_server/src/req.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index e224ede80..5c589f969 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs | |||
@@ -39,6 +39,7 @@ impl Request for SyntaxTree { | |||
39 | #[serde(rename_all = "camelCase")] | 39 | #[serde(rename_all = "camelCase")] |
40 | pub struct SyntaxTreeParams { | 40 | pub struct SyntaxTreeParams { |
41 | pub text_document: TextDocumentIdentifier, | 41 | pub text_document: TextDocumentIdentifier, |
42 | pub range: Option<Range>, | ||
42 | } | 43 | } |
43 | 44 | ||
44 | pub enum ExtendSelection {} | 45 | pub enum ExtendSelection {} |