mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Refactor file renaming logic in JobThreadContext and improve path handling
- Simplified the logic for resolving the actual file to rename, consolidating the handling of directory and file paths. - Enhanced the script renaming process to ensure correct naming conventions based on class type, improving clarity and consistency. - Updated logging to provide better insights during class name changes and file renaming operations, aiding in debugging. - Made minor formatting adjustments to improve code readability in the `suppressed_paths` method and API service file handling.
This commit is contained in:
parent
f38c96e12b
commit
e6944e3132
3 changed files with 62 additions and 60 deletions
|
|
@ -178,7 +178,9 @@ impl ServeSession {
|
|||
/// Returns a handle to the suppressed paths map, used to avoid
|
||||
/// file watcher echo when the API writes files to disk.
|
||||
#[allow(dead_code)]
|
||||
pub fn suppressed_paths(&self) -> Arc<Mutex<std::collections::HashMap<std::path::PathBuf, usize>>> {
|
||||
pub fn suppressed_paths(
|
||||
&self,
|
||||
) -> Arc<Mutex<std::collections::HashMap<std::path::PathBuf, usize>>> {
|
||||
Arc::clone(&self.suppressed_paths)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue