rust/crates
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
..
base_db Merge #10872 2021-11-30 14:07:39 +00:00
cfg Replace some String usages with SmolStr in completions 2021-11-05 12:30:39 +01:00
flycheck Don't discard flycheck error messages 2021-11-27 18:57:51 +01:00
hir Merge #10872 2021-11-30 14:07:39 +00:00
hir_def Merge #10872 2021-11-30 14:07:39 +00:00
hir_expand Document token up/down mapping 2021-11-22 17:58:36 +01:00
hir_ty fix: Omit generic defaults for types in hover messages 2021-11-22 18:27:03 +01:00
ide Merge #10872 2021-11-30 14:07:39 +00:00
ide_assists fix: derive path handling 2021-11-25 00:21:29 +09:00
ide_completion Merge #10847 2021-11-24 15:33:00 +00:00
ide_db simpler way of grabbing module / trait name 2021-11-30 08:24:07 +00:00
ide_diagnostics fix: Diagnose invalid derive attribute input 2021-11-19 13:17:35 +01:00
ide_ssr Merge #10698 2021-11-07 11:02:39 +00:00
limit
mbe Fix mbe::Shift::new not accounting for non-ident token ids 2021-11-22 18:00:32 +01:00
parser fix: parse the range pat inside the tuple pat 2021-11-18 11:11:37 +08:00
paths
proc_macro_api Bump object avoid a duplicate dependency 2021-10-30 09:02:45 +03:00
proc_macro_srv Fix proc macro ABI version checks 2021-11-18 10:24:24 +02:00
proc_macro_test
profile Allow disabling perf access via RA_DISABLE_PERF 2021-11-16 19:42:19 +01:00
project_model Merge #10841 2021-11-29 11:13:39 +00:00
rust-analyzer Merge #10841 2021-11-29 11:13:39 +00:00
sourcegen
stdx
syntax Remove possible multiline details in completions 2021-11-24 16:08:11 +01:00
test_utils
text_edit Update crates/text_edit/src/lib.rs 2021-11-03 15:44:46 +01:00
toolchain
tt
vfs minor: Lift out FxIndex{Map/Set} types into ide_db 2021-11-16 12:15:47 +01:00
vfs-notify