We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 644b1b5 commit 399f3f3Copy full SHA for 399f3f3
1 file changed
crates/oak_ide/tests/integration/goto_definition.rs
@@ -16,7 +16,13 @@ use oak_scan::DbExt;
16
use url::Url;
17
18
fn file_url(name: &str) -> Url {
19
- Url::parse(&format!("file:///project/R/{name}")).unwrap()
+ // `Url::to_file_path` on Windows requires a drive-letter prefix, so
20
+ // synthesize one for tests. Linux is happy with rootless paths.
21
+ if cfg!(windows) {
22
+ Url::parse(&format!("file:///C:/project/R/{name}")).unwrap()
23
+ } else {
24
+ Url::parse(&format!("file:///project/R/{name}")).unwrap()
25
+ }
26
}
27
28
fn upsert(db: &mut OakDatabase, name: &str, contents: &str) -> File {
0 commit comments