Skip to content

Preserve the startup promise when initialization loses its connection - #1867

Merged
Dirk Bäumer (dbaeumer) merged 2 commits into
microsoft:mainfrom
lamestllama:fix/preserve-startup-promise
Sep 29, 2026
Merged

Dirk Bäumer (dbaeumer) merged 2 commits into
microsoft:mainfrom
lamestllama:fix/preserve-startup-promise

Conversation

@lamestllama

Copy link
Copy Markdown

If an IPC language server exits during initialization and the close handler elects not to restart it, handleConnectionClosed clears _onStart before start() returns. The first caller consequently receives a fulfilled promise, while a concurrent caller that already retained _onStart receives the initialization failure.

Return the local startup promise captured before initialization, so every caller observes the same failure even after the connection-close path clears the field.

The regression starts a real IPC server that exits in its initialize handler and checks that two concurrent starts reject with the same connection-disposal error. It fails before the fix (the first result is fulfilled) and passes afterwards. The test stubs the public stop() method to isolate the startup promises from the separate existing rejection when initialization failure tries to stop a non-running client.

Validation on Linux ARM64 with Node 20.20.2 and VS Code Insiders 1.140.0 (4a6a3612a562c50f54c2bd5211f0ea42915b974e):

  • npm run compile passed.
  • The complete client-node-tests editor suite passed: 206 tests, using the repository test entry point under Xvfb.
  • npm run lint --prefix client and npm run lint --prefix client-node-tests passed.
  • git diff --check passed.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@lamestllama

Copy link
Copy Markdown
Author

@lamestllama

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 1867 in repo microsoft/vscode-languageserver-node

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused fix correctly addresses the race and includes representative regression coverage; only a minor header convention remains.

Review effort: Balanced
Findings: 1 Low severity

Open (1)

@dbaeumer Dirk Bäumer (dbaeumer) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See review comment.

@lamestllama

Copy link
Copy Markdown
Author

I have updated the copyright notice as requested.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused fix correctly addresses the race and includes representative regression coverage.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@dbaeumer

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Oct 29, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Oct 29, 2026
vscode-languageclient 11.0.0 (2026-10-22) has two startup fixes:
microsoft/vscode-languageserver-node#1867 keeps the startup promise that
a connection closed during initialization used to lose, and our
microsoft/vscode-languageserver-node#1896 handles the stop() that
follows a failed initialization. It needs the same VS Code as 10.1.2
(^1.91.0), and it takes vscode-jsonrpc 10.0.0 and the 3.18.5 protocol
and types. Only the version line changes in package.json; the lockfile
keeps qs 6.17.1 and serialize-javascript 7.1.4.

Validation: compile, lint and bundle pass, with Node 24.21.0 and npm
11.19.0; the headless suite passes, 7 tests on VS Code 1.101.0 and 7 on
1.144.0, the hover case included; packageExtension builds the VSIX.

Limits: the client's stop() patch stays. 11.0.0 makes it unneeded on
the failed-initialization path, but master has no test of a failed
start, which is where it would show.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Oct 29, 2026
vscode-languageclient 11.0.0 (2026-10-22) has two startup fixes:
microsoft/vscode-languageserver-node#1867 keeps the startup promise that
a connection closed during initialization used to lose, and our
microsoft/vscode-languageserver-node#1896 handles the stop() that
follows a failed initialization. It needs the same VS Code as 10.1.2
(^1.91.0), and it takes vscode-jsonrpc 10.0.0 and the 3.18.5 protocol
and types. Only the version line changes in package.json; the lockfile
keeps qs 6.17.1 and serialize-javascript 7.1.4.

Validation: compile, lint and bundle pass, with Node 24.21.0 and npm
11.19.0; the headless suite passes, 7 tests on VS Code 1.101.0 and 7 on
1.144.0, the hover case included; packageExtension builds the VSIX.

Limits: the client's stop() patch stays. 11.0.0 makes it unneeded on
the failed-initialization path, but master has no test of a failed
start, which is where it would show.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Oct 29, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Oct 29, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Oct 29, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Oct 29, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Oct 29, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 2, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 2, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 4, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 4, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 5, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 5, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 9, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 9, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 11, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 11, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 16, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 22, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 22, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…unneeded

vscode-languageclient 11.0.0, which master takes since #744, has both
fixes the VS Code extension worked around:
microsoft/vscode-languageserver-node#1867, which keeps the startup
promise that a connection closed during initialization used to lose, and
our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2 on
  2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).
Marcus Lagergren (lagergren) added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
vscode-languageclient 11.0.0 has both fixes the VS Code extension worked
around: microsoft/vscode-languageserver-node#1867, which keeps the
startup promise that a connection closed during initialization used to
lose, and our #1896, which handles the stop() that follows a failed
initialization. The client's start() no longer calls super.start() a
second time to observe that promise, and the stop() override that
swallowed every rejection is gone. 11.0.0 needs the same VS Code as
10.1.2 (^1.91.0); it takes vscode-jsonrpc 10.0.0 and the 3.18.5
protocol and types.

Validation:
- Control: with the workarounds removed on 10.1.2, X272 fails with the
  orphaned "Pending response rejected since connection got disposed"
  rejection (run-5r1R0a), so the case catches the defect.
- On 11.0.0 without them, X271 and X272 pass three times (run-1JBxQD,
  run-NYckWV, run-6hbgxh).
- The headless suite passes, 70 tests; eslint passes.
- The full VS Code playbook passes 332 of its 333 cases, as on 10.1.2
  on 2026-10-28 (run-Pc161s): X218 fails on VS Code's own Undo order
  (UP23). The harness stops a run after a timeout, so it ran in three
  windows (run-l2txtQ, run-gvT2Bt, run-CirjOs): X167 and X222 timed out
  where keys typed by hand reached the test window, and passed when run
  again; X130, VS Code's Explorer TreeError (UP16), failed once and
  passed on its own (run-FjS9yf).

Limits: master's extension, which has neither workaround, is still on
10.1.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants