about summary refs log tree commit diff
path: root/crates/ide/src
AgeCommit message (Collapse)AuthorLines
2022-04-26minor: Add test for parameter and reborrow hint orderLukas Wirth-16/+16
2022-04-26`signature_help`: use corresponding param list for methodsiDawer-1/+23
2022-04-25Re-export `FxHashMap` and `FxHashSet` from `ide_db`Lukas Wirth-28/+17
2022-04-25Auto merge of #12072 - bitgaoshu:master, r=jonas-schievinkbors-0/+43
fix #11973 associated type is unresolved
2022-04-24#11973 associated type is unresolvedbitgaoshu-0/+43
2022-04-23Add fallback for return typeiDawer-7/+12
2022-04-23Fall back to parameter definitions on error types in signature helpiDawer-21/+45
2022-04-19Allows triggering commands after an assist editJonas Schievink-0/+5
2022-04-17Disable rustfmt for expand_macro on wasm platformsLukas Wirth-2/+2
2022-04-17Fix macro patterns not getting formatted properlyLukas Wirth-17/+26
2022-04-17feat: Attempt to format expand_macro output with rustfmt if possibleLukas Wirth-8/+74
2022-04-15Auto merge of #12001 - Veykril:refs, r=Veykrilbors-28/+50
fix: Do reference search on all downmapped tokens with the same kind only cc https://github.com/rust-lang/rust-analyzer/issues/11668
2022-04-15fix: Do reference search on all downmapped tokens with the same kind onlyLukas Wirth-28/+50
2022-04-15Auto merge of #12000 - Veykril:hlmac, r=Veykrilbors-18/+18
fix: Tag `macro_rules` macro bang with `MacroBang` tag cc https://github.com/rust-lang/rust-analyzer/issues/11996
2022-04-15fix: Tag `macro_rules` macro bang with `MacroBang` tagLukas Wirth-18/+18
2022-04-14add docsJonas Schievink-0/+3
2022-04-13Remove trailing `;` when turning assignment into `==` comparisonJonas Schievink-1/+70
2022-04-13Add more no-op testsJonas Schievink-0/+16
2022-04-12Add trailing `;` when typing `=` in assignmentJonas Schievink-9/+95
2022-04-12Merge #11883bors[bot]-3/+71
11883: fix(ide): move moudle directory when rename r=rainy-me a=rainy-me fix: #10992 Added `FileSystemEdit::MoveDir` variant for move dirs. Original implemented as recursively move child mod files but had many issues like 1. left empty dir after rename file 2. only affect rust file 3. not performant so changed to current version Co-authored-by: rainy-me <github@yue.coffee>
2022-04-12fix: move dir on rename modrainy-me-3/+71
2022-04-10SimplifyLukas Wirth-19/+22
2022-04-09fix: Check whether a parameter can be converted to a localLukas Wirth-2/+7
2022-04-07Determine function unsafety semanticallyJonas Schievink-2/+2
2022-04-07minor: Remove pointless rebindingsLukas Wirth-1/+1
2022-04-06internal: Add more doc-link testsLukas Wirth-10/+94
2022-04-06fix: Attempt to resolve paths in const arguments heuristicallyLukas Wirth-0/+2
While we don't support const args in type inference yet, we can at least make use of the fallback path resolution to resolve paths in const args in the IDE layer to enable some features for them.
2022-04-06fix: Fix path qualifiers not resolving generic type params when shadowed by ↵Lukas Wirth-0/+9
trait
2022-04-05Wrap macros in expr position in `MacroExpr` nodeJonas Schievink-27/+40
2022-04-02Simplify completion import insertionLukas Wirth-1/+1
2022-04-01Merge #11872bors[bot]-3/+0
11872: internal: Remove `PathResolution::AssocItem` r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-04-01internal: Remove `PathResolution::AssocItem`Lukas Wirth-3/+0
2022-04-01Merge #11869bors[bot]-5/+18
11869: fix: code blocks with tilde also works like code block r=Veykril a=moreal The `rustdoc` uses the `pulldown_cmark` package to parse *doc_comment* and the package also treat triple `~` characters also as code block fences. So when we run `cargo doc`, they will be placed also. <img width="965" alt="image" src="https://user-images.githubusercontent.com/26626194/161208072-5a09a209-57fc-4a52-b190-b0a9be9ffcd6.png"> But `rust-analyzer` doesn't support it so it doesn't have any injected code highlights and any `Run doctest` hint. This pull request tries to allow also them. 🙇🏻‍♂️ Before: <img width="224" alt="image" src="https://user-images.githubusercontent.com/26626194/161207405-b1d6cfda-82b1-4f60-8e42-c51d0ed98f38.png"> After: <img width="161" alt="image" src="https://user-images.githubusercontent.com/26626194/161207693-8e39997c-9ca6-4e69-8c65-e9b70899f7db.png"> Co-authored-by: Lee Dogeon <dev.moreal@gmail.com>
2022-04-01Code blocks with tilde also works like code blockLee Dogeon-5/+18
2022-03-31internal: Enforce Resolver to always have a module scopeLukas Wirth-21/+24
2022-03-30internal: Refactor FamousDefs builtin crate searchLukas Wirth-17/+19
2022-03-26Sort runnable test results to make them deterministicLukas Wirth-127/+128
2022-03-24organize const eval testshkalbasi-160/+8
2022-03-24Support constants in const evalhkalbasi-0/+85
2022-03-23Merge #11805bors[bot]-1/+1
11805: fix: Don't try to resolve methods on unknown types r=Veykril a=flodiebold Fixes #10454, and some type mismatches. Co-authored-by: Florian Diebold <flodiebold@gmail.com>
2022-03-23Adjust value in syntax highlighting benchmarkFlorian Diebold-1/+1
2022-03-22signature help: skip lifetimes when non-lifetime arguments are presentJonas Schievink-14/+84
2022-03-22Avoid signature help inside multiline expressionsJonas Schievink-10/+79
Fixes #11768
2022-03-22Improve readability of signature help testsJonas Schievink-94/+99
2022-03-21Replace write! with direct callsLaurențiu Nicola-5/+9
2022-03-20Merge #11775bors[bot]-3/+3
11775: internal: Treat `global_asm` and `asm` macros as unsafe r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-03-20internal: Treat {global_}asm macros as unsafeLukas Wirth-3/+3
2022-03-20Merge #11774bors[bot]-1/+63
11774: feat: Tag macro calls as unsafe if they expand to unsafe expressions r=Veykril a=Veykril as long as they aren't inside an unsafe block inside the macro that is. Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-03-20feat: Tag macro calls as unsafe if they expand to unsafe expressionsLukas Wirth-1/+63
2022-03-20Merge #11771bors[bot]-13/+71
11771: feat: Visualize compiler inserted reborrows via inlay hints r=Veykril a=Veykril Disabled by default. ![image](https://user-images.githubusercontent.com/3757771/159165178-baaf968a-4381-468e-933f-5326ca1b203d.png) Closes https://github.com/rust-analyzer/rust-analyzer/issues/11275 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>