mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Refactor TODO list and enhance sourcemap watch functionality
- Updated the TODO list to refine tasks related to sync performance in scripts only mode, emphasizing the need to prune non-script leaves. - Enhanced the sourcemap command to handle non-terminal stdin during watch mode, allowing for graceful exit when stdin is closed. These changes aim to improve project management and optimize the sourcemap functionality.
This commit is contained in:
parent
8fc56dc6f0
commit
89e7e0282d
2 changed files with 18 additions and 11 deletions
11
TODO.txt
11
TODO.txt
|
|
@ -345,17 +345,8 @@ we should support right-click to unselect the bubble (atlas/studio/skip)
|
||||||
[auto select issue]
|
[auto select issue]
|
||||||
when you commit changes on git, it's considered unchanged. we should send like the last git hash too, like prior to head, too.
|
when you commit changes on git, it's considered unchanged. we should send like the last git hash too, like prior to head, too.
|
||||||
|
|
||||||
[add ServerStorage/RBX_ANIMSAVES to ignore list!]
|
|
||||||
globIgnorePaths: ["src/ServerStorage/RBX_ANIMSAVES/**", "src/ServerStorage/MoonAnimator2Saves/**"],
|
|
||||||
syncbackRules: {
|
|
||||||
ignoreTrees: ["ServerStorage/RBX_ANIMSAVES/**", "ServerStorage/MoonAnimator2Saves/**"],
|
|
||||||
},
|
|
||||||
|
|
||||||
[scripts only mode]
|
[scripts only mode]
|
||||||
when in scripts only mode, try to avoid the entire tree where scripts dont exist to make syncing from the Roblox plugin faster
|
when in scripts only mode, try to avoid the entire tree where scripts dont exist to make syncing from the Roblox plugin faster. prune non-script leaves.
|
||||||
|
|
||||||
[luau-lsp sourcemap gen]
|
|
||||||
luau-lsp sourcemap generator --watch is leaving instances of atlas running forever
|
|
||||||
|
|
||||||
[yielding after sync]
|
[yielding after sync]
|
||||||
there is some process that is making disconnecting after a one-shot sync completes take FOREVER if the server is yielding (usually from the reconciler)
|
there is some process that is making disconnecting after a one-shot sync completes take FOREVER if the server is yielding (usually from the reconciler)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{
|
use std::{
|
||||||
borrow::Cow,
|
borrow::Cow,
|
||||||
io::{BufWriter, Write},
|
io::{BufWriter, IsTerminal, Write},
|
||||||
mem::forget,
|
mem::forget,
|
||||||
path::{self, Path, PathBuf},
|
path::{self, Path, PathBuf},
|
||||||
process,
|
process,
|
||||||
|
|
@ -104,6 +104,22 @@ impl SourcemapCommand {
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
if self.watch {
|
if self.watch {
|
||||||
|
if !std::io::stdin().is_terminal() {
|
||||||
|
std::thread::spawn(|| {
|
||||||
|
use std::io::Read;
|
||||||
|
let mut buf = [0u8; 1];
|
||||||
|
loop {
|
||||||
|
match std::io::stdin().lock().read(&mut buf) {
|
||||||
|
Ok(0) | Err(_) => {
|
||||||
|
log::trace!("stdin closed, exiting --watch");
|
||||||
|
process::exit(0);
|
||||||
|
}
|
||||||
|
Ok(_) => {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
let rt = Runtime::new().unwrap();
|
let rt = Runtime::new().unwrap();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue