| 85 | // ── Helper: open either the Blade or PHP file ─────────────────────── |
| 86 | |
| 87 | async fn open_blade(backend: &phpantom_lsp::Backend) -> String { |
| 88 | let uri = "file:///resources/views/email.blade.php"; |
| 89 | backend |
| 90 | .did_open(DidOpenTextDocumentParams { |
| 91 | text_document: TextDocumentItem { |
| 92 | uri: Url::parse(uri).unwrap(), |
| 93 | language_id: "blade".to_string(), |
| 94 | version: 1, |
| 95 | text: BLADE_TEMPLATE.to_string(), |
| 96 | }, |
| 97 | }) |
| 98 | .await; |
| 99 | uri.to_string() |
| 100 | } |
| 101 | |
| 102 | async fn open_php_equivalent(backend: &phpantom_lsp::Backend) -> String { |
| 103 | let uri = "file:///equivalent.php"; |