8674: fix for #8664: Emit folding ranges for multi-line where clauses r=matklad a=m5tfi

#8664 

I added a test that assert folding multi-line where clauses while leaving single lined one. Please, let me know if the code needs further improvements.

Co-authored-by: m5tfi <72708423+m5tfi@users.noreply.github.com>
This commit is contained in:
bors[bot]
2021-05-05 21:14:12 +00:00
committed by GitHub
2 changed files with 46 additions and 0 deletions

View File

@@ -524,6 +524,7 @@ pub(crate) fn folding_range(
| FoldKind::ArgList
| FoldKind::Consts
| FoldKind::Statics
| FoldKind::WhereClause
| FoldKind::Array => None,
};