Send textDocument/didOpen.
(self, uri: str, text: str)
| 302 | self.send_notification("initialized", {}) |
| 303 | |
| 304 | def did_open(self, uri: str, text: str) -> None: |
| 305 | """Send textDocument/didOpen.""" |
| 306 | self.send_notification("textDocument/didOpen", { |
| 307 | "textDocument": { |
| 308 | "uri": uri, |
| 309 | "languageId": "php", |
| 310 | "version": 1, |
| 311 | "text": text, |
| 312 | } |
| 313 | }) |
| 314 | |
| 315 | def hover(self, uri: str, line: int, character: int, timeout: float = 30) -> dict[str, Any]: |
| 316 | """Send textDocument/hover and wait for the response. |