rust-analyzer/crates/ide/src
bors e775dd6c70 Auto merge of #18166 - ChayimFriedman2:dollar-crate-root, r=Veykril
fix: Fix a bug in span map merge, and add explanations of how span maps are stored

Because it took me hours to figure out that contrary to common sense, the offset stored is the *end* of the node, and we search by the *start*. Which is why we need a convoluted `partition_point()` instead of a simple `binary_search()`. And this was not documented at all. Which made me make mistakes with my implementation of `SpanMap::merge()`.

The other bug fixed about span map merging is correctly keeping track of the current offset in presence of multiple sibling macro invocations. Unrelated, but because of the previous issue it took me hours to debug, so I figured out I'll put them together for posterity.

Fixes #18163.
2024-09-24 11:01:05 +00:00
..
annotations Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
doc_links Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
hover Support expect in attribute completion and hover 2024-09-23 14:55:50 +03:00
inlay_hints fix: Don't emit empty inlay hint parts 2024-09-12 08:48:06 +02:00
syntax_highlighting Always cache macro expansions' root node in Semantics 2024-09-17 00:19:39 +03:00
typing Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
annotations.rs Update test fixtures 2024-07-18 09:09:31 +02:00
call_hierarchy.rs Fully remove old macro descension API 2024-08-22 16:18:01 +02:00
doc_links.rs Give InlineAsmOperand a HIR representation 2024-09-05 12:40:48 +02:00
expand_macro.rs Fix a bug in span map merge, and add explanations of how span maps are stored 2024-09-23 01:54:40 +03:00
extend_selection.rs Remove DescendPreference::SameText 2024-08-22 12:34:20 +02:00
fetch_crates.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
file_structure.rs fix: Allow flyimport to import primitive shadowing modules 2024-07-21 13:26:19 +02:00
fixture.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
folding_ranges.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
goto_declaration.rs Rename macro descension functions 2024-08-22 16:24:01 +02:00
goto_definition.rs Fix name resolution when an import is resolved to some namespace and then later in the algorithm another namespace is added 2024-09-22 04:19:10 +03:00
goto_implementation.rs Remove DescendPreference::SameText 2024-08-22 12:34:20 +02:00
goto_type_definition.rs Revert "feat: Implement module_path macro" 2024-08-27 08:19:09 +02:00
highlight_related.rs asm! parsing and lowering fixes 2024-09-05 15:08:16 +02:00
hover.rs Fix sorting order for tokens in hover 2024-08-22 18:08:36 +02:00
inlay_hints.rs fix: Don't emit empty inlay hint parts 2024-09-12 08:48:06 +02:00
interpret_function.rs Simplify FileDelegate 2024-08-05 13:03:03 +02:00
join_lines.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
lib.rs Lift out workspace related data into a separate query to preserve crategraph deduplication 2024-09-11 12:16:41 +02:00
markdown_remove.rs Auto merge of #16155 - Waqar144:work/fix-16142, r=lnicola 2023-12-19 07:22:46 +00:00
markup.rs Consider interleaving hover kinds 2024-08-22 17:29:32 +02:00
matching_brace.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
moniker.rs Give InlineAsmOperand a HIR representation 2024-09-05 12:40:48 +02:00
move_item.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
navigation_target.rs Support more IDE features for asm operands 2024-09-05 13:19:02 +02:00
parent_module.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
references.rs Add cov_marks to test #17927 2024-08-22 20:52:51 +03:00
rename.rs Fix name fetching being incorrect for asm operands 2024-09-05 13:41:03 +02:00
runnables.rs Properly account for editions in names 2024-08-16 16:46:24 +03:00
signature_help.rs Remove DescendPreference::SameText 2024-08-22 12:34:20 +02:00
ssr.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
static_index.rs Auto merge of #17900 - darichey:exclude-vendored-libraries, r=davidbarsky 2024-08-16 14:25:36 +00:00
status.rs Revert "feat: Implement module_path macro" 2024-08-27 08:19:09 +02:00
syntax_highlighting.rs Sort hover results by relevance 2024-08-22 17:01:51 +02:00
syntax_tree.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
test_explorer.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
typing.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
view_crate_graph.rs Simplify FileDelegate 2024-08-05 13:03:03 +02:00
view_hir.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00
view_item_tree.rs Properly account for editions in names 2024-08-16 16:46:24 +03:00
view_memory_layout.rs Properly account for editions in names 2024-08-16 16:46:24 +03:00
view_mir.rs Encode edition within FileId in the hir layer 2024-07-18 08:49:10 +02:00