From 8a563bd185109b07f688e85846480113922aada8 Mon Sep 17 00:00:00 2001 From: arookieofc Date: Sun, 8 Nov 2026 05:39:37 +0800 Subject: [PATCH] fix(test): use a home-relative path in the write-capability manifest test (#2036) `/opt/tool` has no drive letter, so Windows rejects it as non-absolute before the API 1.3 gate the test checks. `~/tool` parses on every platform. Co-authored-by: a-rookie-of-C-language <186315048+a-rookie-of-C-language@users.noreply.github.com> --- crates/ide-extension/src/manifest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide-extension/src/manifest.rs b/crates/ide-extension/src/manifest.rs index 69de1550a..c6403d704 100644 --- a/crates/ide-extension/src/manifest.rs +++ b/crates/ide-extension/src/manifest.rs @@ -590,7 +590,7 @@ mod tests { #[test] fn write_capabilities_need_api_1_3() { - for cap in ["project.write", "fs.write:/opt/tool"] { + for cap in ["project.write", "fs.write:~/tool"] { let caps = format!("[capabilities]\noptional = [\"{cap}\"]\n"); assert!(err(&format!("{BASE}{caps}")).contains("new in plugin API 1.3"), "{cap}"); let m = Manifest::parse(&format!("{}{caps}", BASE.replace("^1.2", "^1.3"))).unwrap();