Commit 5ecb611
feat(affine-vscode): languageClientSendRequest host binding (Refs #103)
#103 slice-2 (sendRequest half — owner-scoped; the callback half is
tracked separately in #199).
Adds languageClientSendRequest to the VscodeLanguageClient binding map
in packages/affine-vscode/mod.js (the JS-side impl the #103 acceptance
criteria names). It reads the method + JSON params string, parses the
params (empty/malformed -> no params), invokes c.sendRequest, and
registers the returned Thenable in the handle table — matching the
existing newLanguageClient/start/stop pattern. No host->guest callback
involved, so it is unaffected by the Deno callback-ABI gap.
node --check clean. mod.js is a JS package (not dune-built); no 253
impact.
Pilot scope note: the rsr-certifier vscode extension calls sendRequest
*inside* a vscode.window.withProgress wrapper. withProgress needs the
host->guest callback ABI, which the source-to-source backend lacks
(#199). The full pilot restore is therefore blocked on #199; forcing a
withProgress-less partial rewrite of a cross-repo production extension
would be a damaging partial change and is deliberately not done here.
This PR delivers the enabling binding; the pilot follows #199.
Refs #103
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e1c1591 commit 5ecb611
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
348 | 369 | | |
349 | 370 | | |
350 | 371 | | |
| |||
0 commit comments