Luxe 0.1.2: Windows fixes, working compaction, and compaction progress in the dock

This commit is contained in:
Evan Whittaker
2026-10-18 15:04:51 -05:00
parent 4ed87ee4e4
commit 33b87c78a8
69 changed files with 1470 additions and 424 deletions

View File

@@ -160,15 +160,11 @@ fn debug_adapters() -> String {
Vec::new()
});
for (adapter, from_config) in crate::engine_setup::merged_debug_adapters(&user) {
let program = adapter.spec.command.first().cloned().unwrap_or_default();
let state = match luxe_core::program::resolve(&program).is_some() {
true => "ok ",
false => "none ",
};
let (state, advice) = adapter_state(&adapter.spec.command);
let origin = if from_config { " (debug-adapters.json)" } else { "" };
let _ = writeln!(
out,
" {state} {:<12} {}{origin}",
" {state} {:<12} {}{origin}{advice}",
adapter.spec.id,
adapter.spec.command.join(" ")
);
@@ -177,6 +173,17 @@ fn debug_adapters() -> String {
out
}
/// Whether an adapter's `command` will start, and, when it is there but will not, what to do: the
/// same judgment that decides whether `debug` is offered.
fn adapter_state(command: &[String]) -> (&'static str, String) {
use luxe_dap::adapter::Unready;
match luxe_dap::adapter::unready(command) {
None => ("ok ", String::new()),
Some(why @ Unready::NoModule(..)) => ("none ", format!(" ({why})")),
Some(Unready::Missing(_)) => ("none ", String::new()),
}
}
/// The external programs the tools prefer, and what happens without each.
fn external_programs() -> String {
/// Program, what wants it, and what absence costs.