aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers/replace_qualified_name_with_use.rs
Commit message (Collapse)AuthorAgeFilesLines
* Change <|> to $0 - RebaseKevaundray Wedderburn2021-01-071-29/+29
|
* Fix use merging not using the first path segmentLukas Wirth2020-11-301-1/+1
|
* Move the helpers into ide_dbKirill Bulatov2020-11-281-1/+1
|
* Rustdocs fixesKirill Bulatov2020-11-271-1/+1
|
* Extract the import code into the shared moduleKirill Bulatov2020-11-271-5/+3
|
* Add imports in auto completionKirill Bulatov2020-11-161-1/+1
|
* Make insert_use return a SyntaxRewriterLukas Wirth2020-11-021-4/+3
|
* Fix stackoverflow in insert_use::recursive_mergeLukas Wirth2020-10-141-0/+17
|
* Fix MergeBehaviour::Full not working when merging nested long pathsLukas Wirth2020-10-131-1/+1
|
* Merge #6019bors[bot]2020-09-291-20/+6
|\ | | | | | | | | | | | | | | 6019: Remove make::path_from_text r=matklad a=Veykril This removes the `make::path_from_text` function, which according to a note should've been private. I removed it since it didn't really serve a purpose as it was simply wrapping `make::ast_from_text`. Co-authored-by: Lukas Wirth <[email protected]>
| * Remove make::path_from_textLukas Wirth2020-09-161-20/+6
| |
* | Merge #5989bors[bot]2020-09-161-13/+7
|\ \ | |/ |/| | | | | | | | | | | | | | | 5989: Rewrite import merging r=jonas-schievink a=Veykril Rewrites how import merging is being handled. It is now a recursive function to properly handle merging of intermediate levels in the import trees. With this ordering the imports is also now possible tho it doesn't quite order it the same way as `rustfmt` does yet, namely it orders lowercase identifiers after uppercase identifiers as that is the standard character order that rust uses. This also fixes a few weird behaviors that were visible in some of the `replace_qualified_name_with_use.rs` tests. This really took longer than I was hoping for, fighting with import trees is quite the exhausting task 😅 Co-authored-by: Lukas Wirth <[email protected]>
| * Reimplement import merging by making it recursive properly nesting all levelsLukas Wirth2020-09-121-13/+7
| |
* | Make MergeBehaviour configurableLukas Wirth2020-09-121-2/+2
|/
* Fix import insertion breaking nested modulesLukas Wirth2020-09-031-9/+11
|
* Fix inserting imports in front of inner attributesLukas Wirth2020-09-031-2/+3
|
* Replace insert_use_statement with the new insert_useLukas Wirth2020-09-031-32/+33
|
* Don't expose hir::Path out of hirAleksey Kladov2020-08-151-29/+21
| | | | | | | | | | | | | | Conjecture: it's impossible to use hir::Path *correctly* from an IDE. I am not entirely sure about this, and we might need to add it back at some point, but I have to arguments that convince me that we probably won't: * `hir::Path` has to know about hygiene, which an IDE can't set up properly. * `hir::Path` lacks identity, but you actually have to know identity to resolve it correctly
* Rename ra_assists -> assistsAleksey Kladov2020-08-131-0/+688