diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-05 10:52:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-05 10:52:54 +0000 |
| commit | 8a084e6aca05337a88a152593bf04bae28090df1 (patch) | |
| tree | 1d811487a0de1b1c29bce70d04d6a83807adacaa /src/test/codegen/src-hash-algorithm | |
| parent | 6434ada19e7cf2e96015fb2668d64a0fdfc08b23 (diff) | |
| parent | fa2818551efcfe9f5269b2649a5f269749259509 (diff) | |
| download | rust-8a084e6aca05337a88a152593bf04bae28090df1.tar.gz rust-8a084e6aca05337a88a152593bf04bae28090df1.zip | |
Merge #10902
10902: Handle multiple cargo check quick fix spans r=Veykril a=brandondong Resolves https://github.com/rust-analyzer/rust-analyzer/issues/10705. **Cause:** - For a cargo check diagnostic with multiple spans, only a single quick fix action would be created at the location of `spans[0]`. Additionally, the hover window details would only show the location of `spans[0]` next to the message. **Fix:** - Allow cargo check quick fix actions to be triggerable from multiple selection ranges. Specifically, if the selection intersects with any of the replacement spans, the quick fix action is shown. - No change in behavior for the hover window details. It's pretty minor and I think showing multiple locations next to the message may be more confusing anyways. Co-authored-by: Brandon <brandondong604@hotmail.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
