aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Test and initial refactoringKirill Bulatov2021-03-081-85/+65
| |
* | Use upstream cov-markLaurențiu Nicola2021-03-084-12/+10
| |
* | Make group imports configurableasv2021-03-072-7/+48
| |
* | Show docs on hover for keywords and primitivesLukas Wirth2021-03-022-0/+12
| |
* | Fixed remaining references to `AnalysisChange` (now: `Change`)Vincent Esche2021-02-282-2/+2
|/ | | | (The type was renamed/moved in 8716c4cec3a05ba891b20b5f28df69d925b913ad)
* De Morgan's Law assist now correctly inverts <, <=, >, >=.lbrande2021-02-242-0/+15
|
* Pickup ConstReference patterns in FindUsagesLukas Wirth2021-02-231-4/+11
|
* Implement ast::AstNode for NameLike and move it to node_extLukas Wirth2021-02-161-42/+24
|
* Use `cfg(target_arch)` instead of a Cargo featureJonas Schievink2021-02-161-1/+1
| | | | Not that WASM works right now anyways...
* Merge #7657bors[bot]2021-02-162-21/+41
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 7657: utf8 r=matklad a=matklad - Prepare for utf-8 offsets - reduce code duplication in tests - Make utf8 default, implement utf16 in terms of it - Make it easy to add additional context for offset conversion - Implement utf8 offsets closes #7453 Co-authored-by: Aleksey Kladov <[email protected]>
| * Make utf8 default, implement utf16 in terms of itAleksey Kladov2021-02-162-7/+22
| |
| * reduce code duplication in testsAleksey Kladov2021-02-161-14/+19
| |
| * Prepare for utf-8 offsetsAleksey Kladov2021-02-162-20/+20
| |
* | Fix a few clippy::perf warningskjeremy2021-02-161-1/+1
|/
* Don't classify attribute macros as their path unless it's a function with ↵Lukas Wirth2021-02-131-3/+11
| | | | the proc_macro_attribute attribute
* Use NameLike in FileReference directly as its not exported from ide anymoreLukas Wirth2021-02-121-43/+20
|
* Refactor reference searching to work with the astLukas Wirth2021-02-121-80/+60
|
* Make `ModPath`'s representation privateJonas Schievink2021-02-041-1/+1
|
* Make always-assert crate reusableAleksey Kladov2021-01-261-5/+2
|
* Merge #7406bors[bot]2021-01-261-0/+15
|\ | | | | | | | | | | | | | | 7406: if_let_match: don't assume happy path r=matklad a=bugadani Closes #7392 Co-authored-by: Dániel Buga <[email protected]>
| * replace_if_let_with_match: don't assume sad patternDániel Buga2021-01-221-0/+15
| |
* | Support unions in symbol searchLukas Wirth2021-01-241-5/+9
|/
* Merge #7353bors[bot]2021-01-221-0/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7353: Add LifetimeParam and ConstParam to CompletionItemKind r=matklad a=Veykril Adds `LifetimeParam` and `ConstParam` to `CompletionItemKind` and maps them both to `TypeParam` in the protocol conversion as there are no equivalents, so nothing really changes there. `ConstParam` could be mapped to `Const` I guess but I'm split on whether that would be better? Additions were solely inspired by (the single) test output for const params. Also sorts the variants of `CompletionItemKind` and its to_proto match. Co-authored-by: Lukas Wirth <[email protected]>
| * Partially unify SymbolKind and CompletionItemKindLukas Wirth2021-01-201-14/+14
| |
| * Move SymbolKind to ide_dbLukas Wirth2021-01-201-0/+24
| |
* | Add name resolution query for block expressionsJonas Schievink2021-01-211-0/+1
| |
* | Treat BlockExpr as a potential module originJonas Schievink2021-01-201-0/+10
| |
* | Make public DefMap fields privateJonas Schievink2021-01-201-1/+1
| |
* | .Aleksey Kladov2021-01-193-4/+4
|/
* Merge #7297 #7338bors[bot]2021-01-182-158/+274
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7297: Propose trait associated items and autoimport traits on completion r=matklad a=SomeoneToIgnore ![trait_imports](https://user-images.githubusercontent.com/2690773/104819998-6faeb480-583a-11eb-8b45-b7351b51b90e.gif) Closes #7248 7338: Parse `impl const Trait` r=Veykril a=Veykril Closes #7313 bors r+ Co-authored-by: Kirill Bulatov <[email protected]> Co-authored-by: Lukas Wirth <[email protected]>
| * Do trait solving in batchKirill Bulatov2021-01-171-95/+97
| |
| * Draft the working completionKirill Bulatov2021-01-172-16/+30
| |
| * Add flyimport completion for trait assoc itemsKirill Bulatov2021-01-162-130/+230
| |
* | Merge #7291bors[bot]2021-01-181-7/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | 7291: Wrap remaining self/super/crate in Name{Ref} r=matklad a=Veykril That should be the remaining special casing for `self` 🎉 Co-authored-by: Lukas Wirth <[email protected]>
| * | Wrap remaining self/super/crate in Name{Ref}Lukas Wirth2021-01-151-7/+4
| | |
* | | Merge #7292bors[bot]2021-01-181-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 7292: Swap assert_eq_text\!(expected, actual) r=matklad a=u5surf Fixes #7283 Swap assert_eq_text parameters in the order (expected, actual) Co-authored-by: yugo-horie <[email protected]>
| * | Swap assert_eq_text\!(expected, actual)yugo-horie2021-01-161-1/+1
| | |
* | | Share import_assets and related entitiesKirill Bulatov2021-01-164-2/+278
|/ /
* / Add Unmerge Use assistunexge2021-01-151-1/+1
|/
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-153-21/+36
|
* Phase out SourceFileEdits in favour of a plain HashMapLukas Wirth2021-01-141-25/+25
|
* Group file source edits by FileIdLukas Wirth2021-01-141-12/+42
|
* Merge #7260bors[bot]2021-01-142-88/+121
|\ | | | | | | | | | | | | | | | | | | | | 7260: Render Fn* trait objects and impl types as rust does r=matklad a=Veykril Also fixes raw ptr impl types being rendered ambiguously with multiple predicates. This moves out the `FamousDefs::Fixture` into its own file as well, cause I figured it is big enough to get its own file at this point + we also get highlighting this way when editing it. Fixes #3012 Co-authored-by: Lukas Wirth <[email protected]>
| * Render Fn* trait objects and impl types as rust doesLukas Wirth2021-01-131-0/+1
| |
| * Move FamousDefs fixture out into its own fileLukas Wirth2021-01-122-88/+120
| |
* | Rename FileReferences -> UsageSearchResultLukas Wirth2021-01-121-6/+5
| |
* | Ensure uniqueness of file ids in reference search via hashmapLukas Wirth2021-01-121-19/+29
| |
* | Group references by FileIdLukas Wirth2021-01-121-37/+64
|/
* Merge #7218bors[bot]2021-01-101-1/+1
|\ | | | | | | | | | | | | | | 7218: Fix typos r=Veykril a=regexident Apart from the very last commit on this PR (which fixes a public type's name) all changes are non-breaking. Co-authored-by: Vincent Esche <[email protected]>
| * Fixed typos in code commentsVincent Esche2021-01-091-1/+1
| |