aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/references/rename.rs
Commit message (Collapse)AuthorAgeFilesLines
* Return original text range in PrepareRename responses when inside macroLukas Wirth2021-03-101-7/+47
|
* Avoid double text edits when renaming mod declarationLukas Wirth2021-03-101-0/+1
|
* Use upstream cov-markLaurențiu Nicola2021-03-081-28/+30
|
* Prevent renaming SelfType and BuiltinTypeLukas Wirth2021-03-031-0/+2
|
* Reorder functions in rename.rsLukas Wirth2021-03-031-189/+187
|
* Update vscode README with a small features listLukas Wirth2021-03-011-0/+9
|
* Implement ast::AstNode for NameLike and move it to node_extLukas Wirth2021-02-161-35/+16
|
* Fix a few clippy::perf warningskjeremy2021-02-161-2/+4
|
* Don't rename field record patterns directlyLukas Wirth2021-02-131-36/+71
|
* Fallback to renaming input NameRef node for macros when inside macroLukas Wirth2021-02-131-16/+53
|
* Prevent aliases from being renamed for nowLukas Wirth2021-02-131-13/+24
|
* Use NameLike in FileReference directly as its not exported from ide anymoreLukas Wirth2021-02-121-7/+5
|
* Refactor reference searching to work with the astLukas Wirth2021-02-121-78/+119
|
* Pin Rust to 1.49.0 on CIJonas Schievink2021-02-121-3/+3
|
* Make always-assert crate reusableAleksey Kladov2021-01-261-3/+3
|
* Remove obsolete RangeInfo usage in renameLukas Wirth2021-01-181-166/+148
|
* Make rename reference search use ide_db::search directlyLukas Wirth2021-01-181-163/+209
|
* Wrap remaining self/super/crate in Name{Ref}Lukas Wirth2021-01-151-44/+32
|
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-151-1/+1
|
* Phase out SourceFileEdits in favour of a plain HashMapLukas Wirth2021-01-141-100/+95
|
* Group file source edits by FileIdLukas Wirth2021-01-141-81/+57
|
* Merge #7262bors[bot]2021-01-131-3/+0
|\ | | | | | | | | | | | | | | | | 7262: Don't show internal server error on rename r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Don't show internal server error on renameAleksey Kladov2021-01-131-3/+0
| | | | | | | | | | | | | | Doesn't quite work due to https://github.com/microsoft/vscode-languageserver-node/issues/730 Note that this intentionally removes `impl std::Error for RenameError` -- we nether want to blindly bubble the rename error.
* | Ensure uniqueness of file ids in reference search via hashmapLukas Wirth2021-01-121-8/+12
| |
* | Group references by FileIdLukas Wirth2021-01-121-47/+47
|/
*-. Merge #7051 #7219 #7245 #7246bors[bot]2021-01-111-79/+161
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7051: Check dbg! macro in tidy_test r=matklad a=edwin0cheng Same as `check_todo` but for dbg! macro r? @matklad 7219: Refactor rename name checking r=matklad a=Veykril Improves the user facing error messages a bit and prevents renaming to `_` when the name is referenced as this would change source to not compile anymore since `_` is only a pattern, not a proper identifier. 7245: Encourage gifs r=matklad a=matklad bors r+ 🤖 7246: Unfreeze cargo_metadata r=matklad a=kjeremy It now pulls in a newer version of semver-parser. This does add a dependency on `cargo-platform` in the interest of correctness. Co-authored-by: Edwin Cheng <[email protected]> Co-authored-by: Lukas Wirth <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> Co-authored-by: kjeremy <[email protected]>
| | * Add some more marks to rename testsLukas Wirth2021-01-101-17/+58
| | |
| | * Use local error macros in references/renameLukas Wirth2021-01-101-39/+30
| | |
| | * Refactor rename name checkingLukas Wirth2021-01-091-53/+103
| |/
* / Fixed typos in code commentsVincent Esche2021-01-091-2/+2
|/
* Change <|> to $0 - RebaseKevaundray Wedderburn2021-01-071-46/+46
|
* Merge #7030bors[bot]2020-12-241-0/+25
|\ | | | | | | | | | | | | | | | | | | 7030: Support labels in reference search r=matklad a=Veykril Implements general navigation for labels, goto def, rename and gives labels their own semantic highlighting class. Fixes #6966 Co-authored-by: Lukas Wirth <[email protected]>
| * Support labels in reference searchLukas Wirth2020-12-241-0/+25
| |
* | Implement workspace/willRenameFiles for single-level file movesJeremy Kolb2020-12-231-1/+18
|/ | | | Renames modules during file rename if they're in the same directory.
* Add test_rename_bind_patbjorn32020-12-191-0/+35
|
* Lifetime reference searchLukas Wirth2020-12-161-6/+98
|
* Introduce anchored_pathAleksey Kladov2020-12-091-23/+34
| | | | | They allow to represent paths like `#[path = "C:\path.rs"] mod foo;` in a lossless cross-platform & network-transparent way.
* Type-safer API for dealing with parameter lists with optional selfAleksey Kladov2020-12-011-1/+1
|
* Reject more cases of invalid parameter to self renamesLukas Wirth2020-11-291-13/+122
|
* Fix renaming owned self to parameter emitting refLukas Wirth2020-11-291-1/+30
|
* Minor, import styleAleksey Kladov2020-11-231-6/+5
|
* Cleanup edit_text_range_for_record_field_expr_or_patLukas Wirth2020-11-151-46/+59
|
* Use shorthand field syntax in destructuresLukas Wirth2020-11-141-17/+60
|
* Properly handle shorthands in destructure patterns when renamingLukas Wirth2020-11-141-0/+54
|
* Use shorthand record syntax when renaming struct initializer fieldLukas Wirth2020-11-141-4/+45
|
* Re-export base_db from ide_dbIgor Aleksanov2020-10-241-1/+1
|
* More idiomatic classification APIAleksey Kladov2020-10-151-3/+3
|
* Add fix for incorrect case diagnosticIgor Aleksanov2020-10-121-0/+7
|
* Show reason for failed rename refactoringRüdiger Herrmann2020-10-101-46/+129
| | | | | | | | | | | Return an error with a meaningful message for requests to `textDocument/rename` if the operation cannot be performed. Pass errors raised by rename handling code to the LSP runtime. As a consequence, the VS Code client shows and logs the request as if a server-side programming error occured. Resolves https://github.com/rust-analyzer/rust-analyzer/issues/3981
* rename mock_analysis -> fixtureAleksey Kladov2020-10-021-4/+4
|