diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-13 16:25:02 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-13 16:25:02 +0000 |
commit | d4533785698d439417bc5474fecd62a7f1707368 (patch) | |
tree | 5928843ee3c86809794740e853bd21c2dcd0bf11 /crates | |
parent | bcf2169e7d7c46276214cac627a70673b7676567 (diff) | |
parent | a9c3e70443e1075917662c7b038be4338feb6938 (diff) |
Merge #7997
7997: fix folding range kind r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 9ca0915b9..5736875d3 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -484,7 +484,8 @@ pub(crate) fn folding_range( | |||
484 | let kind = match fold.kind { | 484 | let kind = match fold.kind { |
485 | FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment), | 485 | FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment), |
486 | FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports), | 486 | FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports), |
487 | FoldKind::Mods | FoldKind::Block | FoldKind::ArgList | FoldKind::Region => None, | 487 | FoldKind::Region => Some(lsp_types::FoldingRangeKind::Region), |
488 | FoldKind::Mods | FoldKind::Block | FoldKind::ArgList => None, | ||
488 | }; | 489 | }; |
489 | 490 | ||
490 | let range = range(line_index, fold.range); | 491 | let range = range(line_index, fold.range); |