mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Update deduplication logic and documentation for suffix handling
- Removed the `luau` dependency from `rokit.toml`. - Updated deduplication logic to append `~2`, `~3`, etc. instead of `~1`, `~2` for naming collisions in various files, ensuring consistent suffix management. - Adjusted comments and documentation across multiple files to reflect the new suffix handling rules. - Added new test cases to validate the updated deduplication behavior, ensuring accurate naming for instances with collisions. These changes enhance the clarity and functionality of the deduplication process, improving overall consistency in naming conventions.
This commit is contained in:
parent
a59d9d497a
commit
d836ebddc8
35 changed files with 349 additions and 281 deletions
|
|
@ -237,7 +237,7 @@ impl RojoTree {
|
|||
/// instances (derived from `instigating_source` path), falling back to
|
||||
/// the instance name for instances without filesystem backing.
|
||||
///
|
||||
/// Path format: `"Workspace/Model.model.json5/Attachment~1.luau"`
|
||||
/// Path format: `"Workspace/Model.model.json5/Attachment~2.luau"`
|
||||
/// Segments are separated by `/` (no escaping needed since filesystem
|
||||
/// names can't contain `/`).
|
||||
pub fn get_instance_by_path(&self, path: &str) -> Option<Ref> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue