rust-analyzer/crates/ide-completion/src
bors a0ab61fb6c Auto merge of #13358 - btwotwo:feature/env-vars-autocompletion, r=Veykril
feat: Autocomplete Cargo-defined env vars in `env!` and `option_env!` (#12448)

Closes #12448

Important to know:

- Variables are taken from https://doc.rust-lang.org/cargo/reference/environment-variables.html and hardcoded as a const array.
- For the sake of simplicity I didn't include the autocompletion of `CARGO_BIN_EXE_<name>` and `OUT_DIR` since it would require information about build.rs and binary name. If somebody knows an easy way of obtaining them I can add those vars as well :)
2022-10-11 18:45:31 +00:00
..
completions Formatting 2022-10-11 19:53:22 +02:00
context Refactor completions expansion 2022-10-10 15:45:24 +02:00
render fix: Fix reference autocompletions using incorrect offsets in macro inputs 2022-08-23 14:29:59 +02:00
tests Complete variants and assoc items in path pattern through type aliases 2022-09-16 16:11:58 +02:00
completions.rs Add stub for cargo environment variables auto completion 2022-10-06 16:32:19 +02:00
config.rs Restructure find_path into a separate functions for modules and non-module items 2022-09-13 15:15:27 +02:00
context.rs Auto merge of #13386 - Veykril:completions-ref, r=Veykril 2022-10-10 14:05:38 +00:00
item.rs Record derive helper attributes, resolve them in IDE layer 2022-07-26 09:26:51 +02:00
lib.rs Pass context to env vars completion 2022-10-06 21:35:12 +02:00
render.rs fix: Fix reference autocompletions using incorrect offsets in macro inputs 2022-08-23 14:29:59 +02:00
snippet.rs Restructure find_path into a separate functions for modules and non-module items 2022-09-13 15:15:27 +02:00
tests.rs Restructure find_path into a separate functions for modules and non-module items 2022-09-13 15:15:27 +02:00