rust-analyzer/crates/ide/src
bors 62dcf39ef0 Auto merge of #14723 - obsgolem:master, r=Veykril
Added remove unused imports assist

This resolves the most important part of #5131. I needed to make a couple of cosmetic changes to the search infrastructure to do this.

A few open questions:
* Should imports that don't resolve to anything be considered unused? I figured probably not, but it would be a trivial change to make if we want it.
* Is there a cleaner way to make the edits to the use list?
* Is there a cleaner way to get the list of uses that intersect the current selection?
* Is the performance acceptable? When testing this on itself, it takes a good couple seconds to perform the assist.
* Is there a way to hide the rustc diagnostics that overlap with this functionality?
2023-08-01 09:50:16 +00:00
..
annotations Fix annotations not resolving when lens location is set to whole item 2022-10-01 00:18:23 +02:00
doc_links Propagating sysroot down + Refactoring 2023-05-02 17:08:56 +02:00
hover Replace x with it 2023-07-06 17:33:17 +03:30
inlay_hints Give real discriminant_type to chalk 2023-07-14 20:15:18 +03:30
prime_caches Re-export FxHashMap and FxHashSet from ide_db 2022-04-25 18:51:59 +02:00
syntax_highlighting Add comments for why skip highlighting for invalid char/byte literals 2023-07-23 04:24:35 +08:00
typing Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
annotations.rs Fix annotations not resolving when lens location is set to whole item 2022-10-01 00:18:23 +02:00
call_hierarchy.rs Refactor symbol index 2023-05-02 12:11:42 +02:00
doc_links.rs Format let-else 2023-07-03 20:34:09 +02:00
expand_macro.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
extend_selection.rs Support c string literals 2023-05-18 11:06:05 +02:00
fetch_crates.rs Fix broken table 2023-05-08 21:27:35 +03:00
file_structure.rs Spelling 2023-04-19 09:45:55 -04:00
fixture.rs Spelling 2023-04-19 09:45:55 -04:00
folding_ranges.rs feat: add fold range for multi line match arm list 2022-06-18 16:05:56 +08:00
goto_declaration.rs fix indentation of unlinked_file quickfix 2023-01-12 11:24:44 +01:00
goto_definition.rs Fix #14557. Docs aliases can now be detected and used in searching for workspace symbols 2023-05-24 23:57:24 +02:00
goto_implementation.rs Fix tests 2023-03-14 19:55:20 +01:00
goto_type_definition.rs fix: don't try determining type of token inside macro calls 2023-05-26 16:46:45 +09:00
highlight_related.rs Updated search to expose some more functions and to make search take the search scope by reference. 2023-07-09 17:30:21 -04:00
hover.rs Add render configs for memory layout hovers 2023-05-30 18:36:06 +02:00
inlay_hints.rs Restructure InlayHint, no longer derive properties from its kind 2023-05-13 10:42:26 +02:00
interpret_function.rs implement type_name intrinsic 2023-07-14 16:52:36 +03:30
join_lines.rs collapse some nested blocks 2023-01-10 20:40:08 +00:00
lib.rs internal: Defer rendering of structured snippets 2023-07-12 01:50:35 -04:00
markdown_remove.rs REplace soft breaks in markdown with spaces 2023-01-23 12:21:23 +01:00
markup.rs Support trait aliases in IDE where type support isn't needed 2023-03-04 00:24:08 +09:00
matching_brace.rs Fix r-a spelling in some places 2022-08-01 13:47:09 +02:00
moniker.rs Add library fixture meta 2023-06-28 22:34:14 +09:00
move_item.rs Support trait aliases in IDE where type support isn't needed 2023-03-04 00:24:08 +09:00
navigation_target.rs Don't diagnose builtin derives 2023-07-03 14:23:36 +02:00
parent_module.rs fix: Fix DidSaveDocument requests blocking the server on startup 2022-10-20 19:55:04 +02:00
prime_caches.rs Wrap platform-specific QoS in r-a-specific “thread intent” 2023-05-28 20:37:38 +10:00
references.rs Updated search to expose some more functions and to make search take the search scope by reference. 2023-07-09 17:30:21 -04:00
rename.rs Add SnippetEdit to be alongside source changes 2023-07-12 00:43:41 -04:00
runnables.rs Updated search to expose some more functions and to make search take the search scope by reference. 2023-07-09 17:30:21 -04:00
shuffle_crate_graph.rs Use triomphe Arc 2023-05-02 20:02:43 +03:00
signature_help.rs Insert missing expr/pat for leading comma tuples 2023-06-01 08:56:40 +02:00
ssr.rs Add SnippetEdit to be alongside source changes 2023-07-12 00:43:41 -04:00
static_index.rs cleanup + docs + tests 2023-07-07 23:12:09 -04:00
status.rs Slightly shrink DefMap 2023-06-01 14:46:36 +02:00
syntax_highlighting.rs Fix highlighting of byte escape sequences 2023-07-17 22:52:58 +08:00
syntax_tree.rs Support c string literals 2023-05-18 11:06:05 +02:00
typing.rs fix: Don't insert a semicolon when typing = if parse errors are encountered 2023-02-08 12:06:35 +01:00
view_crate_graph.rs Use triomphe Arc 2023-05-02 20:02:43 +03:00
view_hir.rs Add an HIR pretty-printer 2022-08-15 13:51:45 +02:00
view_item_tree.rs internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
view_memory_layout.rs Rework view memory layout tests to use expect_test and to_strings. 2023-07-09 16:11:15 -04:00
view_mir.rs Add View Mir command and fix some bugs 2023-03-06 21:09:09 +03:30