Skip to content

Commit 3c97b7d

Browse files
committed
Add module that computes edits for file/folder renames
That module is as of yet unused, but will be integrated in a future change.
1 parent bd52258 commit 3c97b7d

4 files changed

Lines changed: 2444 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ty_ide/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ruff_python_ast = { workspace = true }
2323
ruff_python_codegen = { workspace = true }
2424
ruff_python_importer = { workspace = true }
2525
ruff_python_literal = { workspace = true }
26+
ruff_python_stdlib = { workspace = true }
2627
ruff_python_trivia = { workspace = true }
2728
ruff_source_file = { workspace = true }
2829
ruff_text_size = { workspace = true }

crates/ty_ide/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ mod signature_help;
2828
mod stub_mapping;
2929
mod symbols;
3030
mod type_hierarchy;
31+
mod will_rename;
3132
mod workspace_symbols;
3233

3334
pub use all_symbols::{AllSymbolInfo, all_symbols};
@@ -61,6 +62,10 @@ pub use symbols::{FlatSymbols, HierarchicalSymbols, SymbolId, SymbolInfo, Symbol
6162
pub use type_hierarchy::{
6263
TypeHierarchyItem, prepare_type_hierarchy, type_hierarchy_subtypes, type_hierarchy_supertypes,
6364
};
65+
pub use will_rename::{
66+
FileRenameEdit, PathRename, UnsupportedFileRename, will_rename_paths,
67+
will_rename_paths_in_files,
68+
};
6469
pub use workspace_symbols::{WorkspaceSymbolInfo, workspace_symbols};
6570

6671
use ruff_db::{

0 commit comments

Comments
 (0)