rust/crates
bors dbb8fedf8b Auto merge of #13221 - mdx97:mdx97/annotations-above-whole-item, r=Veykril
Allow configuration of annotation location.

I've added the ability to configure where lens annotations render relevant to the item they describe. Previously, these would render directly above the line the item is declared on. Now, there is the ability to render these annotations above the entire item (including doc comments, and attributes).

The names of the config options are up for debate, I did what seemed best to me but if anyone has better ideas let me know.

This is my first contribution so if I've missed anything please let me know.

Here's a preview of what the new option looks like:

<img width="577" alt="Screen Shot 2022-09-11 at 10 39 51 PM" src="https://user-images.githubusercontent.com/33100798/189570298-b4fcbf9c-ee49-4b79-aae6-1037ae4f26af.png">

closes https://github.com/rust-lang/rust-analyzer/issues/13218
2022-09-13 15:09:53 +00:00
..
base-db
cfg
flycheck
hir Auto merge of #13225 - lowr:fix/hir-proj-normalization, r=Veykril 2022-09-13 14:52:58 +00:00
hir-def Restructure find_path into a separate functions for modules and non-module items 2022-09-13 15:15:27 +02:00
hir-expand Auto merge of #13167 - iDawer:exhaustive_patterns, r=Veykril 2022-09-02 12:32:36 +00:00
hir-ty Auto merge of #13225 - lowr:fix/hir-proj-normalization, r=Veykril 2022-09-13 14:52:58 +00:00
ide Auto merge of #13221 - mdx97:mdx97/annotations-above-whole-item, r=Veykril 2022-09-13 15:09:53 +00:00
ide-assists Auto merge of #13227 - Veykril:core-pref, r=Veykril 2022-09-13 13:16:57 +00:00
ide-completion Auto merge of #13227 - Veykril:core-pref, r=Veykril 2022-09-13 13:16:57 +00:00
ide-db Auto merge of #13227 - Veykril:core-pref, r=Veykril 2022-09-13 13:16:57 +00:00
ide-diagnostics Restructure find_path into a separate functions for modules and non-module items 2022-09-13 15:15:27 +02:00
ide-ssr Add config to unconditionally prefer core imports over std 2022-09-09 20:04:56 +02:00
limit
mbe
parser Auto merge of #13160 - ChayimFriedman2:parse-parenthesized-type-path-with-coloncolon, r=jonas-schievink 2022-09-01 21:00:14 +00:00
paths
proc-macro-api
proc-macro-srv
proc-macro-srv-cli
proc-macro-test
profile
project-model
rust-analyzer Auto merge of #13221 - mdx97:mdx97/annotations-above-whole-item, r=Veykril 2022-09-13 15:09:53 +00:00
sourcegen
stdx
syntax Fmt 2022-09-02 21:18:36 +00:00
test-utils
text-edit
toolchain
tt
vfs
vfs-notify