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

Method initialize

benches/memory_usage.py:290–302  ·  view source on GitHub ↗

Send initialize + initialized.

(self)

Source from the content-addressed store, hash-verified

288 # ── High-level protocol ──────────────────────────────────────────
289
290 def initialize(self) -> None:
291 """Send initialize + initialized."""
292 root_uri = Path(self._root).as_uri()
293 rid = self.send_request("initialize", {
294 "processId": os.getpid(),
295 "rootUri": root_uri,
296 "capabilities": {
297 "window": {"workDoneProgress": True},
298 },
299 "initializationOptions": {},
300 })
301 self.wait_for_response(rid, timeout=30)
302 self.send_notification("initialized", {})
303
304 def did_open(self, uri: str, text: str) -> None:
305 """Send textDocument/didOpen."""

Callers 6

run_hello_worldFunction · 0.95
run_laravel_modelFunction · 0.95
smoke_full_lifecycleFunction · 0.45

Calls 3

send_requestMethod · 0.95
wait_for_responseMethod · 0.95
send_notificationMethod · 0.95