aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db
Commit message (Collapse)AuthorAgeFilesLines
* internal: add default to minicoreAleksey Kladov2021-06-171-6/+0
|
* internal: remove dead codeAleksey Kladov2021-06-171-24/+0
|
* internal: switch some tests to minicoreAleksey Kladov2021-06-171-70/+0
|
* internal: cleanup testsAleksey Kladov2021-06-151-3/+4
| | | | | | * ensure standard, non-indented style (should add this check to `fixture` some day) * removed a couple of ignores
* internal: more natural order of sources for TypeParamAleksey Kladov2021-06-141-2/+2
| | | | | We usually use first (left) variant of `Either` for "usual" case, and use right for odd things. For example, pat source is Pat | SelfParam.
* minor: less ambiguous nameAleksey Kladov2021-06-141-3/+4
|
* internal: document rename challengesAleksey Kladov2021-06-141-1/+24
|
* internal: adapt diagnostics to the new rename APIAleksey Kladov2021-06-142-1/+447
|
* internal: cut deps between assists and diagnosticsAleksey Kladov2021-06-142-0/+137
|
* cargo fmtMaan20032021-06-131-3/+1
|
* clippy::redudant_borrowMaan20032021-06-134-11/+11
|
* internal: cross-crate cov-marksAleksey Kladov2021-06-121-1/+1
|
* Merge #9218bors[bot]2021-06-111-10/+37
|\ | | | | | | | | | | | | | | 9218: Item search now respects trait impl items r=Veykril a=Veykril Fixes #2977 Co-authored-by: Lukas Wirth <[email protected]>
| * Item search now respects trait impl itemsLukas Wirth2021-06-111-10/+37
| |
* | Update ungrammarJonas Schievink2021-06-111-1/+1
| |
* | Add more profiling for flyimportsKirill Bulatov2021-06-101-0/+2
| |
* | Don't classify attributes on macro-calls are the macro itselfLukas Wirth2021-06-091-5/+3
|/
* Fix edge case for ImportGranularity guessingLukas Wirth2021-06-082-7/+26
|
* Reorder CompletionContext fieldsLukas Wirth2021-06-071-2/+1
|
* Unescape generated clippy lintsLukas Wirth2021-06-051-314/+726
|
* Replace `-` with `_` in generated lint namesLukas Wirth2021-06-041-137/+135
|
* Generate default lint groupsLukas Wirth2021-06-041-0/+29
|
* Generate default lint completionsLukas Wirth2021-06-042-0/+6892
|
* Make it opt-inJonas Schievink2021-06-031-0/+1
|
* Implement per-edition preludesJonas Schievink2021-06-011-10/+12
|
* Merge #8866bors[bot]2021-05-312-18/+4
|\ | | | | | | | | | | | | | | 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-272-18/+4
| |
* | simplifyLukas Wirth2021-05-282-10/+2
|/
* Exclude inherent traits more eagerlyKirill Bulatov2021-05-271-11/+8
|
* Merge #8945bors[bot]2021-05-232-1/+19
|\ | | | | | | | | | | | | | | | | | | | | | | 8945: fix: Make expected type work in more situations r=flodiebold a=flodiebold Also makes call info show the correct types for generic methods. ![2021-05-23-182952_1134x616_scrot](https://user-images.githubusercontent.com/906069/119269023-dd5a5b00-bbf5-11eb-993a-b6e122c3b9a6.png) ![2021-05-23-183117_922x696_scrot](https://user-images.githubusercontent.com/906069/119269025-dfbcb500-bbf5-11eb-983c-fc415b8428e0.png) Co-authored-by: Florian Diebold <[email protected]>
| * Get rid of field_type againFlorian Diebold2021-05-231-1/+1
| |
| * Record method call substs and use them in call infoFlorian Diebold2021-05-231-0/+18
| |
* | minor: align import style with styleguideAleksey Kladov2021-05-231-3/+3
|/
* Don't compare ast::Visibility by stringifyingLukas Tobias Wirth2021-05-201-6/+9
|
* Merge #8873bors[bot]2021-05-203-15/+237
|\ | | | | | | | | | | | | | | | | | | | | | | 8873: Implement import-granularity guessing r=matklad a=Veykril This renames our `MergeBehavior` to `ImportGranularity` as rustfmt has it as the purpose of them are basically the same. `ImportGranularity::Preserve` currently has no specific purpose for us as we don't have an organize imports assist yet, so it currently acts the same as `ImportGranularity::Item`. We now try to guess the import style on a per file basis and fall back to the user granularity setting if the file has no specific style yet or where it is ambiguous. This can be turned off by setting `import.enforceGranularity` to `true`. Closes https://github.com/rust-analyzer/rust-analyzer/issues/8870 Co-authored-by: Lukas Tobias Wirth <[email protected]>
| * Check for differing attributes in granularity guessingLukas Tobias Wirth2021-05-203-7/+21
| |
| * Replace ImportGranularity::Guess with guessing boolean flagLukas Tobias Wirth2021-05-193-21/+183
| |
| * Add ImportGranularity::GuessLukas Tobias Wirth2021-05-181-12/+4
| |
| * Implement import-granularity guessingLukas Tobias Wirth2021-05-181-2/+33
| |
| * MergeBehavior -> ImportGranularityLukas Tobias Wirth2021-05-182-10/+33
| |
* | Simplify eager macro representationJonas Schievink2021-05-191-1/+0
| |
* | Add new LSP extension for workspace symbol lookupalcroito2021-05-171-0/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new extension allows filtering of workspace symbool lookup results by search scope or search kind. Filtering can be configured in 3 different ways: - The '#' or '*' markers can be added inline with the symbol lookup query. The '#' marker means symbols should be looked up in the current workspace and any dependencies. If not specified, only current workspace is considered. The '*' marker means all kinds of symbols should be looked up (types, functions, etc). If not specified, only type symbols are returned. - Each LSP request can take an optional search_scope or search_kind argument query parameter. - Finally there are 2 global config options that can be set for all requests served by the active RA instance. Add support for setting the global config options to the VSCode extension. The extension does not use the per-request way, but it's useful for other IDEs. The latest version of VSCode filters out the inline markers, so currently the only reasonable way to use the new functionality is via the global config.
* internal: remove SyntaxRewriterAleksey Kladov2021-05-141-1/+3
|
* internal: remove one more immutable treeAleksey Kladov2021-05-141-14/+20
|
* Give MergeBehaviour variants better namesLukas Wirth2021-05-102-45/+53
|
* internal: introduce `ast::make::ext` module with common shortcutsAleksey Kladov2021-05-092-4/+4
| | | | | | | | | | There's a tension between keeping a well-architectured minimal orthogonal set of constructs, and providing convenience functions. Relieve this pressure by introducing an dedicated module for non-orthogonal shortcuts. This is inspired by the django.shortcuts module which serves a similar purpose architecturally.
* Don't handle Self as a usage for TraitDefsLukas Wirth2021-05-081-1/+0
|
* Fix builtintype def_to_tyLukas Wirth2021-05-081-8/+14
|
* Correctly support SelfType when searching for usagesLukas Wirth2021-05-081-70/+102
|
* internal: use API stabilized in 1.52Aleksey Kladov2021-05-061-4/+3
|