rust/crates
bors[bot] 2a75594ee8
Merge #7505
7505: Widen Highlights root range to covering element r=Veykril a=Veykril

There have been a few issues about/containing spurious syntax highlighting panics, which all seem to come from the `rust_analyzer::handlers::handle_semantic_tokens_range` request, which I believe this to be the cause of as the text range we want to highlight here is currently potentially smaller than that of the covering element, so we might highlight something that is inside the covering element, but outside of the text range we wish to highlight causing the assert to fail.
Unfortunately this isn't really easy to test since I have yet to find a reproducible cause(#7504 doesn't work for me cause I can't seem to checkout the given commit).

See #7504, #7298, #7299 and #7416, all of those contain an assertion failure in syntax highlighting, but only in the range request.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-02-05 15:31:25 +00:00
..
assists Merge #7570 #7571 2021-02-05 15:17:41 +00:00
base_db Fix warnings when running cargo doc --document-private-items 2021-01-18 16:44:40 -05:00
cfg
completion Make ModPath's representation private 2021-02-04 20:49:24 +01:00
flycheck Make logger-based debugging more pleasant 2021-01-28 17:07:53 +03:00
hir Prefer ValueNS when resolving hir path for PathExpressions 2021-01-29 15:59:52 +01:00
hir_def Fix merging of segment_index in path resolution 2021-02-05 15:14:33 +01:00
hir_expand add more counts 2021-01-27 12:39:19 +03:00
hir_ty Merge #7570 #7571 2021-02-05 15:17:41 +00:00
ide Increase Highlights highlight range to covering element 2021-02-04 11:37:14 +01:00
ide_db Make ModPath's representation private 2021-02-04 20:49:24 +01:00
mbe Make sure normal dependencies always have version 2021-02-03 12:51:07 +00:00
parser Add validation for mutable const items 2021-01-24 02:17:41 +01:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Reap proc macro server instances 2021-02-01 21:24:09 +02:00
proc_macro_srv Use non-deprecated memmap2 crate 2021-02-02 10:25:17 -05:00
proc_macro_test
profile add more counts 2021-01-27 12:39:19 +03:00
project_model Async Loading outdir and proc-macro 2021-01-29 01:04:14 +08:00
rust-analyzer Make ModPath's representation private 2021-02-04 20:49:24 +01:00
ssr . 2021-01-20 01:56:11 +03:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Merge #7535 2021-02-05 02:55:56 +00:00
test_utils
text_edit
toolchain
tt
vfs
vfs-notify