Send initialize + initialized.
(self)
| 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.""" |