2
0
Fork 0
mirror of https://github.com/rust-lang/rust-analyzer synced 2025-01-26 20:05:03 +00:00
rust-analyzer/crates/ide/src
bors e961b1aece Auto merge of - joshka:jm/edit-name-after-refactor, r=Veykril
Trigger VSCode to rename after extract variable assist is applied

When the user applies the "Extract Variable" assist, the cursor is
positioned at the newly inserted variable. This commit adds a command
to the assist that triggers the rename action in VSCode. This way, the
user can quickly rename the variable after applying the assist.

Fixes part of: 

https://github.com/user-attachments/assets/4cf38740-ab22-4b94-b0f1-eddd51c26c29

I haven't yet looked at the module or function extraction assists yet.
2024-07-15 09:53:39 +00:00
..
annotations Consider exported_name="main" functions in test modules as tests 2024-04-04 14:51:10 +02:00
doc_links internal: Enforce utf8 paths 2024-03-19 15:39:00 +01:00
hover Add f16 and f128 support 2024-07-10 10:43:14 +01:00
inlay_hints Use Symbol in Name 2024-07-12 16:06:44 +02:00
syntax_highlighting Use statics + clone instead of const until const can access statics 2024-07-14 17:52:59 +02:00
typing ⬆️ rust-analyzer 2023-01-09 10:36:22 -08:00
annotations.rs fix: Deduplicate annotations 2023-12-19 08:49:00 +01:00
call_hierarchy.rs fix: Fix callHierarchy LSP violation 2024-07-07 10:14:47 +02:00
doc_links.rs Use correct toolchain channel when generating builtin type doc links 2024-05-23 10:42:15 +02:00
expand_macro.rs Invert matching on builtin macros in expand_allowed_builtins 2024-06-20 10:31:20 +02:00
extend_selection.rs fix: handle character boundaries for wide chars in extend_selection 2024-06-15 23:35:29 +08:00
fetch_crates.rs cargo clippy --fix 2024-01-18 13:59:49 +01:00
file_structure.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
fixture.rs internal: Move out WithFixture into dev-dep only crate 2023-12-18 15:24:08 +01:00
folding_ranges.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
goto_declaration.rs docs: Missing word typo 2024-05-31 11:24:26 -04:00
goto_definition.rs Use Symbol in Name 2024-07-12 16:06:44 +02:00
goto_implementation.rs fix: Goto implementation to impls inside blocks 2024-03-19 22:04:48 +09:00
goto_type_definition.rs Allow navigation targets to be duplicated when the focus range lies in the macro definition site 2023-12-06 12:38:19 +01:00
highlight_related.rs chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00
hover.rs fix: incorrect formatting of hover actions 2024-06-06 21:07:59 +08:00
inlay_hints.rs Use statics + clone instead of const until const can access statics 2024-07-14 17:52:59 +02:00
interpret_function.rs style: simplify string interpolation 2024-05-30 16:18:49 -07:00
join_lines.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
lib.rs feat: add inlay hints for generic parameters 2024-07-08 19:11:41 +08:00
markdown_remove.rs Auto merge of - Waqar144:work/fix-16142, r=lnicola 2023-12-19 07:22:46 +00:00
markup.rs feat: Hover for literals showing additional value information 2024-01-16 14:28:47 +01:00
matching_brace.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
moniker.rs internal: Add StaticLifetime to hir API 2024-05-16 08:02:51 +02:00
move_item.rs ⬆️ rust-analyzer 2023-03-13 10:42:24 +02:00
navigation_target.rs Thread more HasSource::source calls through Semantics for caching 2024-06-10 10:33:07 +02:00
parent_module.rs Add prefix file_ to Semantics's to_module_defs()/to_module_def() methods 2024-02-28 10:27:28 +01:00
references.rs chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00
rename.rs Thread more HasSource::source calls through Semantics for caching 2024-06-10 10:33:07 +02:00
runnables.rs Fix expression scope calculation when within macro expansions 2024-06-30 13:26:17 +02:00
shuffle_crate_graph.rs fix: Split toolchain and datalayout out of CrateData 2024-02-16 14:48:25 +01:00
signature_help.rs Enum variants are not generic def ids 2024-06-24 10:07:31 +02:00
ssr.rs Trigger VSCode to rename after extract variable assist is applied 2024-07-12 19:06:19 -07:00
static_index.rs feat: add inlay hints for generic parameters 2024-07-08 19:11:41 +08:00
status.rs Fix stop_watch on linux 2024-07-07 08:40:41 +02:00
syntax_highlighting.rs chore: Prefer tracing span shorthand macros 2024-06-06 16:52:25 -07:00
syntax_tree.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
test_explorer.rs Use Symbol in Name 2024-07-12 16:06:44 +02:00
typing.rs internal: Thread edition through to parsing/tt-to-syntax-tree routines for macros 2024-04-14 16:02:38 +02:00
view_crate_graph.rs cargo clippy --fix 2024-01-18 13:59:49 +01:00
view_hir.rs ide: Fix warnings about clippy str_to_string rule 2024-02-10 01:00:40 +09:00
view_item_tree.rs Merge commit 'aa9bc8612514d216f84eec218dfd19ab83f3598a' into sync-from-ra 2023-06-05 12:04:23 +03:00
view_memory_layout.rs Use Symbol in Name 2024-07-12 16:06:44 +02:00
view_mir.rs ide: Fix warnings about clippy str_to_string rule 2024-02-10 01:00:40 +09:00