chore: fix clippy warnings, add embedding/omni_patch, update telemetry, and ignore temp files

This commit is contained in:
Riz Ashraf committed 2026-09-29 06:42:29 +01:00
1 parent 495304f3fa
commit 98a1716ac8
23 files changed
+2253 -75

No files matched your search

+18 -5
View File
@@ -90,12 +90,20 @@ async fn get_socket_path() -> Result<String, String> {
if let Ok(content) = tokio::fs::read_to_string(&path).await {
let p = content.trim().to_string();
if !p.is_empty() {
if p.starts_with(r"\\.\pipe\") {
return Ok(p);
let candidate = if p.starts_with(r"\\.\pipe\") {
p
} else if p.starts_with("nvim.") {
return Ok(format!(r"\\.\pipe\{p}"));
format!(r"\\.\pipe\{p}")
} else {
p
};
if is_interactive(&candidate).await {
return Ok(candidate);
} else {
tracing::warn!("Stale active_nvim.txt detected on Windows. Deleting.");
let _ = tokio::fs::remove_file(&path).await;
}
return Ok(p);
}
}
@@ -122,7 +130,12 @@ async fn get_socket_path() -> Result<String, String> {
if let Ok(content) = tokio::fs::read_to_string(&path).await {
let p = content.trim().to_string();
if !p.is_empty() {
return Ok(p);
if is_interactive(&p).await {
return Ok(p);
} else {
tracing::warn!("Stale active_nvim.txt detected on Unix. Deleting.");
let _ = tokio::fs::remove_file(&path).await;
}
}
}
}