MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / file_uri

Function file_uri

tests/fixture_runner.rs:372–375  ·  view source on GitHub ↗

Build a URI for a fixture file path.

(path: &str)

Source from the content-addressed store, hash-verified

370
371/// Build a URI for a fixture file path.
372fn file_uri(path: &str) -> Url {
373 Url::parse(&format!("file:///{path}"))
374 .unwrap_or_else(|_| Url::parse("file:///test.php").unwrap())
375}
376
377/// Open all fixture files on the backend via the public `did_open` LSP method.
378/// Returns the URI of the cursor file.

Callers 1

open_filesFunction · 0.85

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected