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

Method did_open

benches/memory_usage.py:304–313  ·  view source on GitHub ↗

Send textDocument/didOpen.

(self, uri: str, text: str)

Source from the content-addressed store, hash-verified

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.

Calls 1

send_notificationMethod · 0.95