rust-analyzer/crates
Jonas Bushart c039810b16 Fix: Select correct insert position for disabled group import
The logic for importing with and without `group_imports` differed
significantly when no previous group existed. This lead to the problem
of using the wrong position when importing inside a module (#11585) or
when inner attributes are involved.
The existing code for grouped imports is better and takes these things
into account.

This PR changes the flow to use the pre-existing code for adding a new
import group even for the non-grouped import settings.
Some coverage markers are updated and the `group` is removed, since they
are now invoked in both cases (grouping and no grouping).

Tests are updated and two tests (empty module and inner attribute) are
added.

Fixes #11585
2022-03-31 18:15:01 +00:00
..
base_db internal: Refactor FamousDefs builtin crate search 2022-03-30 22:23:54 +02:00
cfg minor: Bump dependencies 2022-03-22 17:42:24 +01:00
flycheck minor: Bump dependencies 2022-03-22 17:42:24 +01:00
hir internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
hir_def internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
hir_expand Type mismatch when last expression is noreturn asm 2022-03-30 19:07:02 +05:30
hir_ty internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide_assists internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide_completion internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide_db Fix: Select correct insert position for disabled group import 2022-03-31 18:15:01 +00:00
ide_diagnostics internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
ide_ssr internal: Enforce Resolver to always have a module scope 2022-03-31 11:12:08 +02:00
limit Use compare_exchange_weak in limit::Limit::check 2022-01-28 18:19:35 +03:00
mbe minor: Bump dependencies 2022-03-22 17:42:24 +01:00
parser Remove parser restriction on varargs positioning 2022-03-31 16:03:27 +02:00
paths Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
proc_macro_api minor: Bump dependencies 2022-03-22 17:42:24 +01:00
proc_macro_srv fix comment 2022-03-25 15:30:52 +01:00
proc_macro_test minor: Bump dependencies 2022-03-22 17:42:24 +01:00
profile minor: Bump dependencies 2022-03-22 17:42:24 +01:00
project_model internal: Refactor FamousDefs builtin crate search 2022-03-30 22:23:54 +02:00
rust-analyzer Add "view file text" command to debug sync issues 2022-03-31 14:50:33 +02:00
sourcegen Bump xshell and fix dist 2022-03-17 08:53:33 +02:00
stdx minor: Bump dependencies 2022-03-22 17:42:24 +01:00
syntax minor: Bump dependencies 2022-03-22 17:42:24 +01:00
test_utils Merge #11805 2022-03-23 20:20:09 +00:00
text_edit minor: Bump dependencies 2022-03-22 17:42:24 +01:00
toolchain Bump MSRV (1.57) 2021-12-16 01:56:12 +05:00
tt minor: Bump dependencies 2022-03-22 17:42:24 +01:00
vfs minor: Bump dependencies 2022-03-22 17:42:24 +01:00
vfs-notify minor: Bump dependencies 2022-03-22 17:42:24 +01:00