(backend: &phpantom_lsp::Backend)
| 100 | } |
| 101 | |
| 102 | async fn open_php_equivalent(backend: &phpantom_lsp::Backend) -> String { |
| 103 | let uri = "file:///equivalent.php"; |
| 104 | backend |
| 105 | .did_open(DidOpenTextDocumentParams { |
| 106 | text_document: TextDocumentItem { |
| 107 | uri: Url::parse(uri).unwrap(), |
| 108 | language_id: "php".to_string(), |
| 109 | version: 1, |
| 110 | text: PHP_EQUIVALENT.to_string(), |
| 111 | }, |
| 112 | }) |
| 113 | .await; |
| 114 | uri.to_string() |
| 115 | } |
| 116 | |
| 117 | // ── Helper: hover at a position and return the hover text ─────────── |
| 118 |