aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer
Commit message (Collapse)AuthorAgeFilesLines
* Add `public` semantic token modifier for public itemsAramis Razzaghipour2021-06-232-0/+2
|
* Merge #9348bors[bot]2021-06-211-1/+8
|\ | | | | | | | | | | | | | | 9348: output to log file if RA_LOG_FILE is defined in environment r=rezural a=rezural This adds a check for RA_LOG_FILE, and logs to that if defined. It currently overrides flags.log_file. If this is undesirable, I will add a check. Co-authored-by: rezural <[email protected]>
| * output to log file if RA_LOG_FILE is defined in environmentrezural2021-06-211-1/+8
| |
* | Collapse documentation and markdown config settings into an enumLukas Wirth2021-06-211-14/+23
| |
* | Split hover actions config into its own config structLukas Wirth2021-06-212-21/+53
| |
* | Merge #9264bors[bot]2021-06-212-9/+20
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 9264: feat: Make documentation on hover configurable r=Veykril a=Veykril This also implements deprecation support for config options as this renames `hoverActions_linksInHover` to `hover_linksInHover`. Fixes #9232 Co-authored-by: Lukas Wirth <[email protected]>
| * | Remove deprecation support in configLukas Wirth2021-06-211-39/+13
| | |
| * | Add configuration deprecationLukas Wirth2021-06-141-10/+39
| | |
| * | Make documentation on hover configurableLukas Wirth2021-06-142-9/+17
| | |
* | | Implement a config override for the default #[cfg(test)] in cargo cratesJade2021-06-191-0/+4
| |/ |/| | | | | | | | | | | | | Fixes crates which vanish when the 'test' cfg atom is set. Fix #7243. Fix #9203. Fix #7225.
* | Allow to disable import insertion on single path glob importsLukas Wirth2021-06-183-0/+7
| |
* | simplifyLukas Wirth2021-06-172-2/+2
| |
* | Merge #9258bors[bot]2021-06-161-4/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | 9258: minor: Give `ImportPrefix` variants better config names r=matklad a=Veykril I feel like `crate` and `self` work better than `by_crate` and `by_self`. The only reason for the current names were that `Self` doesn't work for the variant name on the rust side so I forgot about setting proper config names on serde layer. Co-authored-by: Lukas Wirth <[email protected]>
| * | Give ImportPrefix variants better config namesLukas Wirth2021-06-131-4/+6
| | |
* | | internal: introduce minicore -- a subset of libcore for testingAleksey Kladov2021-06-151-1/+3
| | |
* | | Use objects instead of bools for markers in package.jsonLaurențiu Nicola2021-06-151-2/+2
| |/ |/|
* | Merge #9260bors[bot]2021-06-141-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | 9260: tree-wide: make rustdoc links spiky so they are clickable r=matklad a=lf- Rustdoc was complaining about these while I was running with --document-private-items and I figure they should be fixed. Co-authored-by: Jade <[email protected]>
| * | tree-wide: make rustdoc links spiky so they are clickableJade2021-06-141-1/+1
| | |
* | | internal: diagnostic code is mandatoryAleksey Kladov2021-06-131-6/+5
| | |
* | | clippy::useless_returnMaan20032021-06-132-3/+3
| | |
* | | clippy::redundant_closureMaan20032021-06-131-1/+1
| | |
* | | clippy::redudant_borrowMaan20032021-06-1311-26/+26
| |/ |/|
* | Only prefill caches in the completion benchmarkKirill Bulatov2021-06-115-5/+21
| |
* | Fix visibility issuesKirill Bulatov2021-06-111-5/+5
| |
* | Prime caches on workspace loadKirill Bulatov2021-06-112-2/+3
|/
* Fix incorrect config usage in hover referencesLukas Wirth2021-06-071-1/+1
|
* Enable proc macros and build scripts by default in CLILaurențiu Nicola2021-06-053-19/+19
|
* Enable attribute macro expansion in `analysis-stats`Florian Diebold2021-06-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | Before: ``` > $ rust-analyzer -q analysis-stats --with-proc-macro --load-output-dirs . Database loaded: 19.08s, 277minstr crates: 34, mods: 688, decls: 13202, fns: 10412 Item Collection: 16.21s, 76ginstr exprs: 290580, ??ty: 2508 (0%), ?ty: 1814 (0%), !ty: 947 Inference: 27.46s, 108ginstr Total: 43.67s, 184ginstr ``` After: ``` > $ ./target/release/rust-analyzer -q analysis-stats --with-proc-macro --load-output-dirs . Database loaded: 1.09s, 277minstr crates: 34, mods: 688, decls: 14790, fns: 11006 Item Collection: 18.20s, 78ginstr exprs: 297826, ??ty: 493 (0%), ?ty: 558 (0%), !ty: 342 Inference: 28.34s, 111ginstr Total: 46.54s, 190ginstr ```
* Add function references hover actionLukas Wirth2021-06-042-0/+35
|
* Make it opt-inJonas Schievink2021-06-033-3/+18
|
* NFC: remove redundant clones (clippy::perf)Matthias Krüger2021-06-031-1/+1
|
* Document that `addCallArgumentSnippets` requires `addCallParenthesisLukas Wirth2021-06-021-0/+1
|
* Merge #9039bors[bot]2021-05-313-0/+7
|\ | | | | | | | | | | | | | | | | | | 9039: feat: Complete fields and methods with `self.` prefixed when inside methods r=matklad a=Veykril ![w65NbjkZiG](https://user-images.githubusercontent.com/3757771/119984385-a0111700-bfc1-11eb-9dbf-52fdaa4d72b5.gif) Closes #7173 Co-authored-by: Lukas Wirth <[email protected]>
| * Add config setting for self-on-the-flyLukas Wirth2021-05-313-0/+7
| |
* | Merge #8866bors[bot]2021-05-315-12/+12
|\ \ | |/ |/| | | | | | | | | | | 8866: Update salsa r=matklad a=jonas-schievink This updates salsa to include https://github.com/salsa-rs/salsa/pull/265, and removes all cancellation-related code from rust-analyzer Co-authored-by: Jonas Schievink <[email protected]>
| * Update salsaJonas Schievink2021-05-275-12/+12
| |
* | Merge #9025bors[bot]2021-05-311-34/+53
|\ \ | | | | | | | | | | | | | | | | | | | | | 9025: internal: Display unknown types in `analysis-stats` r=flodiebold a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
| * | Display unknown types in analysis-statsLaurențiu Nicola2021-05-271-34/+53
| |/
* | Fix incorrect setting descriptionsLucas Schwiderski2021-05-291-5/+5
| | | | | | | | | | | | | | | | Descriptions for diagnostic warning hint and info display were swapped. Fixes #8485. Signed-off-by: Lucas Schwiderski <[email protected]>
* | Merge #9028bors[bot]2021-05-283-51/+47
|\ \ | | | | | | | | | | | | | | | | | | | | | 9028: only advertise range formatting support if enabled r=Veykril a=euclio Fixes #9009. Co-authored-by: Andy Russell <[email protected]>
| * | only advertise range formatting support if enabledAndy Russell2021-05-273-51/+47
| |/
* | Merge #9038bors[bot]2021-05-281-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9038: Folding range for return types r=Veykril a=MozarellaMan For issue #8957 ![return type fold](https://user-images.githubusercontent.com/48062697/119979082-5c62e100-bfb2-11eb-9729-1dea1ce74de1.gif) Co-authored-by: Ayomide Bamidele <[email protected]>
| * | Folding range for return typesAyomide Bamidele2021-05-281-0/+1
| |/
* / Remove undocumented `TextDocumentSyncKind::Full` supportLaurențiu Nicola2021-05-281-7/+1
|/
* Document semantic token tagsLukas Wirth2021-05-262-2/+2
|
* Check for subdirs in vfs loader exclusions.ammkrn2021-05-251-1/+5
| | | | | | | | The current logic used to transfer global_excludes into vfs exclusions only transfers global_excludes that are the parent of an item in dirs.include. This commit additionally adds an item from global_exclude to the vfs exclusions if the global_exclude is a child of an included item.
* Merge #8767bors[bot]2021-05-254-102/+155
|\ | | | | | | | | | | | | | | | | | | | | | | 8767: implement range formatting r=matklad a=euclio Fixes #7580. This PR implements the `textDocument/rangeFormatting` request using `rustfmt`'s `--file-lines` option. Still needs some tests. What I want to know is how I should handle the instability of the `--file-lines` option. It's still unstable in rustfmt, so it's only available on nightly, and needs a special flag to enable. Is there a way for `rust-analyzer` to detect if it's using nightly rustfmt, or for users to opt-in? Co-authored-by: Andy Russell <[email protected]>
| * implement range formattingAndy Russell2021-05-234-102/+155
| |
* | Merge #8942bors[bot]2021-05-252-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8942: Add `library` semantic token modifier to items from other crates r=arzg a=arzg Closes #5772. A lot of code here is pretty repetitive; please let me know if you have any ideas how to improve it, or whether it’s fine as-is. Side-note: How can I add tests for this? I don’t see a way for the test Rust code in `test_highlighting` to reference other crates to observe the new behaviour. Co-authored-by: Aramis Razzaghipour <[email protected]>
| * | Rename ‘foreign’ semantic token modifier to ‘library’Aramis Razzaghipour2021-05-242-2/+2
| | |