rust/crates/ide/src
bors[bot] 2d0db312b5
Merge #10872
10872: ide_db: build symbol index from crate def map r=Veykril a=jhgg

fixes #4842, #10764

Is this looking correct? 👀 

- [x] build the symbol index based upon the CrateDefMap for the given crate in `crate_symbols`
   - [x] make it multi threaded again, and figure out how to cache each moduleid's symbol index in salsa.
   - [x] NavigationTarget for names in macros is wrong, need to figure out how to compute a text range in the original file id?
   - [x] cleanup some duped code
   - [x] collect macros from `ItemScope.declared_macros()` into symbol index.
        - [x] store declared macros in `ItemScope` so we can figure out where macros were defined for the index.  
   - [x] do something about `SymbolIndex::for_files` - ideally it should use the new module symbol index stuff. 
       - [x] delete `source_file_to_file_symbols` & co...
           - [x] figure out what to do about `library_symbols` 
           - [x] maybe... speed up the new `library_symbols` - the new impl is probably much slower, and definitely much less parallel. **deciding to do nothing here, we can optimize later if necerssary.** 
   - [x] fix failing test: `navigation_target::tests::test_nav_for_symbol` - notably the crate def map doesn't seem to find declarations inside function. 
       - [x] now a bunch of other tests are failing around auto_import & qualify_path handlers. :(
           - [x] need to assoc items in traits and impls
 

Co-authored-by: Jake Heinz <jh@discordapp.com>
2021-11-30 14:07:39 +00:00
..
doc_links Use array into_iter in more places 2021-11-04 07:51:20 +02:00
hover fix: Omit generic defaults for types in hover messages 2021-11-22 18:27:03 +01:00
syntax_highlighting Disable string highlight injection for macros changing string literals 2021-11-23 22:13:10 +01:00
typing docs: add note about vscode-vim in on_enter 2021-10-01 14:12:32 -04:00
annotations.rs Replace some more ide usages of ModuleDef with Definition 2021-11-11 18:20:54 +01:00
call_hierarchy.rs Unnest ide::display::navigation_target module 2021-11-22 13:04:28 +01:00
call_info.rs Split parts of ide_db::call_info off into ide 2021-11-22 13:23:34 +01:00
doc_links.rs Unnest ide::display::navigation_target module 2021-11-22 13:04:28 +01:00
expand_macro.rs ide: fix expansion for 'as _' 2021-11-27 02:22:21 +00:00
extend_selection.rs Saw a FIXME comment and decided to fix it. 2021-10-12 11:52:31 -04:00
file_structure.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
fixture.rs add some tests 2021-09-26 12:48:53 +03:30
fn_references.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
folding_ranges.rs Rename *Owner traits to Has* 2021-09-27 12:54:24 +02:00
goto_declaration.rs internal: Flatten Definition::ModuleDef variant 2021-11-11 00:05:53 +01:00
goto_definition.rs Unnest ide::display::navigation_target module 2021-11-22 13:04:28 +01:00
goto_implementation.rs Unnest ide::display::navigation_target module 2021-11-22 13:04:28 +01:00
goto_type_definition.rs Unnest ide::display::navigation_target module 2021-11-22 13:04:28 +01:00
highlight_related.rs fix: Prioritize tuple fields in highlight_related 2021-11-25 16:34:40 +01:00
hover.rs Add to macro testing infra to emit token map ids 2021-11-22 16:51:09 +01:00
inlay_hints.rs fix: Show parameter hints unconditionally for logical not expressions 2021-11-27 19:14:36 +01:00
join_lines.rs Migrate to edition 2021 2021-10-21 20:10:40 +02:00
lib.rs Merge #10872 2021-11-30 14:07:39 +00:00
markdown_remove.rs Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
markup.rs Rename ra_ide -> ide 2020-08-13 17:58:27 +02:00
matching_brace.rs Matching brace prefers brace on cursor's right 2021-10-14 14:15:56 +08:00
moniker.rs remove duplicate data from CrateOrigin 2021-11-29 11:10:39 +03:30
move_item.rs more clippy fixes 2021-10-16 12:32:55 +01:00
navigation_target.rs remove one need for semantics 2021-11-30 04:50:09 +00:00
parent_module.rs simplify 2021-05-15 17:22:39 +02:00
prime_caches.rs Prime a more reasonable set of crates 2021-11-11 14:44:12 +01:00
references.rs Unnest ide::display::navigation_target module 2021-11-22 13:04:28 +01:00
rename.rs internal: Flatten Definition::ModuleDef variant 2021-11-11 00:05:53 +01:00
runnables.rs Unnest ide::display::navigation_target module 2021-11-22 13:04:28 +01:00
ssr.rs internal: slightly improve compile times 2021-08-29 12:53:56 +03:00
static_index.rs Emit moniker in lsif 2021-11-22 21:29:05 +03:30
status.rs do something with library_symbols 2021-11-29 09:36:00 +00:00
syntax_highlighting.rs Disable string highlight injection for macros changing string literals 2021-11-23 22:13:10 +01:00
syntax_tree.rs internal: more reasonable grammar for blocks 2021-09-26 19:16:09 +03:00
typing.rs revert 2021-10-16 14:13:43 +01:00
view_crate_graph.rs Add "View Crate Graph (Full)" 2021-07-02 00:10:33 +02:00
view_hir.rs Gifs and screenshots for features in manual 2021-03-31 00:08:10 +01:00
view_item_tree.rs Add a "Debug ItemTree" LSP request 2021-05-21 23:59:52 +02:00