Skip to content

fix: open a file at a starting language server with the edits made while it started - #2127

Merged
lagergren merged 1 commit into
redhat-developer:mainfrom
lagergren:fix/open-a-file-with-the-text-it-has-when-it-connects
Nov 23, 2026
Merged

lagergren merged 1 commit into
redhat-developer:mainfrom
lagergren:fix/open-a-file-with-the-text-it-has-when-it-connects

Conversation

@lagergren

Copy link
Copy Markdown
Collaborator

Fixes #2126

What

An edit made while a file connected to a starting language server never reached the server. The server kept the text from before the edit, and with incremental sync each later change applied to text it didn't have.

Cause

  • LanguageServiceAccessor captures the document's text and modification stamp for the didOpen when it asks for the connection (createFileConnectionInfo).
  • LanguageServerWrapper.connectDocument adds the DocumentContentSynchronizer as the document's listener only once the server has initialized.
  • The didOpen sent the captured text, and no listener had heard the edits made in between.

Change

getDidOpenFutureSync uses the captured text only while the document still has the captured stamp (changedSinceCapture). Otherwise it reads the current text, as when no text was captured, and drops the changes queued since the listener was added: the text it reads contains them.

Why the didOpen reads only after a change:

  • The text is captured so that the didOpen doesn't wait for read access (Freeze when language server is started from the EDT #878). The read of a pooled thread waits for a running write action. The didOpen now reads only when the document changed after the capture.
  • The move of a document connects it without waiting for it (LSPFileListener.reconnectMovedDocument), so a move's write action doesn't wait for that read.
  • The stamp is the one that isCurrentTextAssigned (fix: validate document versions before applying workspace edits #1698) compares, without read access. IntelliJ publishes it through a volatile field (2024.2, 2025.3) or a volatile snapshot (2026.3).

Behavior changes

  • The server gets the edits made while a file connected, in the didOpen.
  • A versioned workspace edit for the version of such a didOpen is now applied, since that version describes the current text. WorkspaceEditVersionTest.testDidOpenVersionCannotAuthorizeTextChangedSinceCapture checked the refusal. It is now testDidOpenVersionAuthorizesTextChangedSinceCapture, and checks that the edit applies.
  • A file whose captured text is still current opens as before, without a read.
  • The public constructor without a stamp sends the text it is given, as before: there is no stamp to compare.

Not changed

A change that is under way while the listener is added, and hasn't updated the stamp when the didOpen compares it, is still missed. The window is the dispatch of one change. On 2024.2 and 2025.3 the listener then hears only the change's documentChanged, which queues no incremental change. On 2026.3, which takes the listeners once for both events, it hears neither. Closing it would need a check under read access after each connection.

Test

ChangeDuringConnectionTest.testDidOpenSendsTheChangeMadeSinceTheCapture (new) uses incremental sync. It captures the connection info of a file, changes the document, and then connects the file. On main it fails: expected:<[new typing]> but was:<[before]>.

2024.2 2025.3 IU 2026.3
The new test on main fails fails fails
ChangeDuringConnectionTest, WorkspaceEditVersionTest, DocumentLifecycleTest, NotificationOrderTest, FileDocumentMoveTest with the fix pass (full suite) 51 pass 51 pass
Full suite with the fix 1865 tests, 0 failures, 7 skipped

…ile it started

Fixes redhat-developer#2126

LanguageServiceAccessor captures a document's text and stamp for the didOpen when it asks for the connection, and
the document's DocumentContentSynchronizer listens to it only once the server has initialized. The didOpen sent the
captured text, so the server never got an edit made in between, and with incremental sync each later change applied
to text it didn't have.

The didOpen now uses the captured text only while the document still has the captured stamp, and otherwise reads the
current text, as when no text was captured. It reads only after such a change, so a didOpen whose text is current
still doesn't wait for read access (redhat-developer#878). A versioned workspace edit for the version of that didOpen now applies,
since the version describes the current text: WorkspaceEditVersionTest's test of the refusal now checks that.

Not changed: a change that is under way while the listener is added, before it updates the stamp, is still missed.

ChangeDuringConnectionTest (new) captures the connection info of a file, changes the document, and connects the file.
On main the didOpen has the old text.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Language servers now receive the latest document text when a document changes during connection setup, rather than potentially receiving an older snapshot.
    • Versioned workspace edits are handled consistently when document text changes during connection setup. This helps keep document synchronization and subsequent edits aligned with the version reported when the document was opened.

The synchronizer now checks whether the document changed after text capture. When it did, didOpen uses the current document text. Tests cover the didOpen text and a workspace edit using the didOpen version.

Changes: Document synchronization during connection

Layer / File(s) Summary
Select current text for didOpen
src/main/java/com/redhat/devtools/lsp4ij/DocumentContentSynchronizer.java
The synchronizer reuses captured text only when its known modification stamp matches the current stamp. Otherwise, it reads the current text and stamp.
Verify synchronization and edit version
src/test/java/com/redhat/devtools/lsp4ij/ChangeDuringConnectionTest.java, src/test/java/com/redhat/devtools/lsp4ij/WorkspaceEditVersionTest.java
A test verifies that didOpen contains text changed after capture. The workspace edit test now verifies that an edit using the didOpen version applies and produces "afterping".

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: Minimal · up to 70612

Edits made while a language server starts now reach the server in the didOpen text, which fixes stale incremental sync after a restart. No remaining merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a file opened on a starting language server now receives the edits made while it started. The change makes getDidOpenFutureSync use current text when the captured modi…
Description check Passed The description states the issue (#2126), the cause (listener attached after the captured didOpen text), the change (stamp-gated read in getDidOpenFutureSync), behavior changes, a known remaining race…
Linked Issues check Passed Directly linked issue #2126 requires that an edit made while a file connects to a starting language server reaches the server, through the didOpen text or a following didChange. At head, DocumentConte…
Out of Scope Changes check Passed The changes are the DocumentContentSynchronizer fix, the new ChangeDuringConnectionTest, and WorkspaceEditVersionTest. The test change renames testDidOpenVersionCannotAuthorizeTextChangedSinceCapture …
Full details: Title check

Explanation

The title names the main change: a file opened on a starting language server now receives the edits made while it started. The change makes getDidOpenFutureSync use current text when the captured modification stamp is stale, which matches the title. The title is short and specific, and it uses the conventional fix: prefix.

Full details: Description check

Explanation

The description states the issue (#2126), the cause (listener attached after the captured didOpen text), the change (stamp-gated read in getDidOpenFutureSync), behavior changes, a known remaining race, and test results. It matches the changeset and the linked objectives.

Full details: Linked Issues check

Explanation

Directly linked issue #2126 requires that an edit made while a file connects to a starting language server reaches the server, through the didOpen text or a following didChange. At head, DocumentContentSynchronizer.getDidOpenFutureSync reuses the captured text and stamp only when changedSinceCapture() is false (documentModificationStamp != -1 and the document stamp is unchanged). Otherwise it reads the current text and stamp under readDocumentState and clears changeEvents, because the read text already contains the queued changes. This matches the suggested fix in #2126. The didOpen reads only after a change, which keeps the no-read path for unchanged text (#878). A new test, ChangeDuringConnectionTest.testDidOpenSendsTheChangeMadeSinceTheCapture, covers the incremental-sync case. The PR description reports it fails on main and passes with the fix. The change under way while the listener is added is a remaining window. #2126 names this window as out of scope for this fix, so it does not count against this assessment. Evidence limit: the whole-PR diff tool was unavailable, so the assessment relies on the head file read (truncated at 16000 bytes), the PR description, and the summary. The test results come from the PR description and were not re-run.

Full details: Out of Scope Changes check

Explanation

The changes are the DocumentContentSynchronizer fix, the new ChangeDuringConnectionTest, and WorkspaceEditVersionTest. The test change renames testDidOpenVersionCannotAuthorizeTextChangedSinceCapture to testDidOpenVersionAuthorizesTextChangedSinceCapture and expects the versioned edit to apply. This follows from the fix: after a changed capture, the didOpen version describes the current text, so the refusal is no longer correct. The PR description states this behavior change. The public constructor without a stamp is unchanged in behavior. No unrelated change was found in the evidence read. Evidence limit: the full diff could not be read, so the check covers the summarized changes and the head file content read.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d788dbef-a15e-4962-843c-be406849df7e
Commits

Reviewing files that changed from the base of the PR and between 40c958d and 70612c1.

Files selected for processing: 3

  • src/main/java/com/redhat/devtools/lsp4ij/DocumentContentSynchronizer.java
  • src/test/java/com/redhat/devtools/lsp4ij/ChangeDuringConnectionTest.java
  • src/test/java/com/redhat/devtools/lsp4ij/WorkspaceEditVersionTest.java

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.67%. Comparing base (40c958d) to head (70612c1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2127   +/-   ##
=======================================
  Coverage   50.66%   50.67%           
=======================================
  Files         816      816           
  Lines       33910    33911    +1     
  Branches     5290     5290           
=======================================
+ Hits        17180    17183    +3     
+ Misses      14066    14060    -6     
- Partials     2664     2668    +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

lagergren added a commit to xtclang/xvm that referenced this pull request Nov 23, 2026
UP83, an edit made while LSP4IJ connects a file to a starting language server that never reaches the server, is
now filed as redhat-developer/lsp4ij#2126. Our redhat-developer/lsp4ij#2127 makes the didOpen read the current text
when the document changed after the capture. The row's gate becomes a release with #2127, after which the tour's kill
step no longer needs to wait for the new server to have the file open.

Validation of #2127: its new test fails on unchanged main on 2024.2, 2025.3 and IU 2026.3, and passes with the fix.
The affected test classes pass on 2025.3 and 2026.3 (51 tests each), and the full 2024.2 suite passes (1865 tests,
0 failures, 7 skipped).

Limits: #2127 leaves a change that is under way while the document's listener is added, before it updates the stamp.
A guard for it worked only on 2024.2 and 2025.3, since 2026.3 takes a change's listeners once for both its events, so
the PR names the window instead. #741 got its rows the same day.
@lagergren lagergren added the bug Something isn't working label Nov 23, 2026
@lagergren lagergren added this to the 0.30.2 milestone Nov 23, 2026
@lagergren

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@lagergren
lagergren merged commit 0f8c24c into redhat-developer:main Nov 23, 2026
9 checks passed
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 23, 2026
…or LSP4IJ 0.30.2

LSP4IJ merged #2127 on 2026-11-23 as 0f8c24c3, on milestone 0.30.2, which closed #2126. No release has it yet;
the row's gate, a release with it and then the tour's wait going, is unchanged.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 23, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 23, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
UP83, an edit made while LSP4IJ connects a file to a starting language server that never reaches the server, is
now filed as redhat-developer/lsp4ij#2126. Our redhat-developer/lsp4ij#2127 makes the didOpen read the current text
when the document changed after the capture. The row's gate becomes a release with #2127, after which the tour's kill
step no longer needs to wait for the new server to have the file open.

Validation of #2127: its new test fails on unchanged main on 2024.2, 2025.3 and IU 2026.3, and passes with the fix.
The affected test classes pass on 2025.3 and 2026.3 (51 tests each), and the full 2024.2 suite passes (1865 tests,
0 failures, 7 skipped).

Limits: #2127 leaves a change that is under way while the document's listener is added, before it updates the stamp.
A guard for it worked only on 2024.2 and 2025.3, since 2026.3 takes a change's listeners once for both its events, so
the PR names the window instead. #741 got its rows the same day.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…or LSP4IJ 0.30.2

LSP4IJ merged #2127 on 2026-11-23 as 0f8c24c3, on milestone 0.30.2, which closed #2126. No release has it yet;
the row's gate, a release with it and then the tour's wait going, is unchanged.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
UP83, an edit made while LSP4IJ connects a file to a starting language server that never reaches the server, is
now filed as redhat-developer/lsp4ij#2126. Our redhat-developer/lsp4ij#2127 makes the didOpen read the current text
when the document changed after the capture. The row's gate becomes a release with #2127, after which the tour's kill
step no longer needs to wait for the new server to have the file open.

Validation of #2127: its new test fails on unchanged main on 2024.2, 2025.3 and IU 2026.3, and passes with the fix.
The affected test classes pass on 2025.3 and 2026.3 (51 tests each), and the full 2024.2 suite passes (1865 tests,
0 failures, 7 skipped).

Limits: #2127 leaves a change that is under way while the document's listener is added, before it updates the stamp.
A guard for it worked only on 2024.2 and 2025.3, since 2026.3 takes a change's listeners once for both its events, so
the PR names the window instead. #741 got its rows the same day.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…or LSP4IJ 0.30.2

LSP4IJ merged #2127 on 2026-11-23 as 0f8c24c3, on milestone 0.30.2, which closed #2126. No release has it yet;
the row's gate, a release with it and then the tour's wait going, is unchanged.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
UP83, an edit made while LSP4IJ connects a file to a starting language server that never reaches the server, is
now filed as redhat-developer/lsp4ij#2126. Our redhat-developer/lsp4ij#2127 makes the didOpen read the current text
when the document changed after the capture. The row's gate becomes a release with #2127, after which the tour's kill
step no longer needs to wait for the new server to have the file open.

Validation of #2127: its new test fails on unchanged main on 2024.2, 2025.3 and IU 2026.3, and passes with the fix.
The affected test classes pass on 2025.3 and 2026.3 (51 tests each), and the full 2024.2 suite passes (1865 tests,
0 failures, 7 skipped).

Limits: #2127 leaves a change that is under way while the document's listener is added, before it updates the stamp.
A guard for it worked only on 2024.2 and 2025.3, since 2026.3 takes a change's listeners once for both its events, so
the PR names the window instead. #741 got its rows the same day.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…or LSP4IJ 0.30.2

LSP4IJ merged #2127 on 2026-11-23 as 0f8c24c3, on milestone 0.30.2, which closed #2126. No release has it yet;
the row's gate, a release with it and then the tour's wait going, is unchanged.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 25, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 26, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 26, 2026
UP83, an edit made while LSP4IJ connects a file to a starting language server that never reaches the server, is
now filed as redhat-developer/lsp4ij#2126. Our redhat-developer/lsp4ij#2127 makes the didOpen read the current text
when the document changed after the capture. The row's gate becomes a release with #2127, after which the tour's kill
step no longer needs to wait for the new server to have the file open.

Validation of #2127: its new test fails on unchanged main on 2024.2, 2025.3 and IU 2026.3, and passes with the fix.
The affected test classes pass on 2025.3 and 2026.3 (51 tests each), and the full 2024.2 suite passes (1865 tests,
0 failures, 7 skipped).

Limits: #2127 leaves a change that is under way while the document's listener is added, before it updates the stamp.
A guard for it worked only on 2024.2 and 2025.3, since 2026.3 takes a change's listeners once for both its events, so
the PR names the window instead. #741 got its rows the same day.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 26, 2026
…or LSP4IJ 0.30.2

LSP4IJ merged #2127 on 2026-11-23 as 0f8c24c3, on milestone 0.30.2, which closed #2126. No release has it yet;
the row's gate, a release with it and then the tour's wait going, is unchanged.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 26, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 26, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 26, 2026
UP83, an edit made while LSP4IJ connects a file to a starting language server that never reaches the server, is
now filed as redhat-developer/lsp4ij#2126. Our redhat-developer/lsp4ij#2127 makes the didOpen read the current text
when the document changed after the capture. The row's gate becomes a release with #2127, after which the tour's kill
step no longer needs to wait for the new server to have the file open.

Validation of #2127: its new test fails on unchanged main on 2024.2, 2025.3 and IU 2026.3, and passes with the fix.
The affected test classes pass on 2025.3 and 2026.3 (51 tests each), and the full 2024.2 suite passes (1865 tests,
0 failures, 7 skipped).

Limits: #2127 leaves a change that is under way while the document's listener is added, before it updates the stamp.
A guard for it worked only on 2024.2 and 2025.3, since 2026.3 takes a change's listeners once for both its events, so
the PR names the window instead. #741 got its rows the same day.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 26, 2026
…or LSP4IJ 0.30.2

LSP4IJ merged #2127 on 2026-11-23 as 0f8c24c3, on milestone 0.30.2, which closed #2126. No release has it yet;
the row's gate, a release with it and then the tour's wait going, is unchanged.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 26, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 27, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 27, 2026
UP83, an edit made while LSP4IJ connects a file to a starting language server that never reaches the server, is
now filed as redhat-developer/lsp4ij#2126. Our redhat-developer/lsp4ij#2127 makes the didOpen read the current text
when the document changed after the capture. The row's gate becomes a release with #2127, after which the tour's kill
step no longer needs to wait for the new server to have the file open.

Validation of #2127: its new test fails on unchanged main on 2024.2, 2025.3 and IU 2026.3, and passes with the fix.
The affected test classes pass on 2025.3 and 2026.3 (51 tests each), and the full 2024.2 suite passes (1865 tests,
0 failures, 7 skipped).

Limits: #2127 leaves a change that is under way while the document's listener is added, before it updates the stamp.
A guard for it worked only on 2024.2 and 2025.3, since 2026.3 takes a change's listeners once for both its events, so
the PR names the window instead. #741 got its rows the same day.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 27, 2026
…or LSP4IJ 0.30.2

LSP4IJ merged #2127 on 2026-11-23 as 0f8c24c3, on milestone 0.30.2, which closed #2126. No release has it yet;
the row's gate, a release with it and then the tour's wait going, is unchanged.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 27, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 28, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 28, 2026
UP83, an edit made while LSP4IJ connects a file to a starting language server that never reaches the server, is
now filed as redhat-developer/lsp4ij#2126. Our redhat-developer/lsp4ij#2127 makes the didOpen read the current text
when the document changed after the capture. The row's gate becomes a release with #2127, after which the tour's kill
step no longer needs to wait for the new server to have the file open.

Validation of #2127: its new test fails on unchanged main on 2024.2, 2025.3 and IU 2026.3, and passes with the fix.
The affected test classes pass on 2025.3 and 2026.3 (51 tests each), and the full 2024.2 suite passes (1865 tests,
0 failures, 7 skipped).

Limits: #2127 leaves a change that is under way while the document's listener is added, before it updates the stamp.
A guard for it worked only on 2024.2 and 2025.3, since 2026.3 takes a change's listeners once for both its events, so
the PR names the window instead. #741 got its rows the same day.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 28, 2026
…or LSP4IJ 0.30.2

LSP4IJ merged #2127 on 2026-11-23 as 0f8c24c3, on milestone 0.30.2, which closed #2126. No release has it yet;
the row's gate, a release with it and then the tour's wait going, is unchanged.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 28, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 29, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 29, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 30, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Nov 30, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
lagergren added a commit to xtclang/xvm that referenced this pull request Dec 1, 2026
…the reviewed LSP4IJ internal APIs (UP83)

LanguageServerLifecycleListener is @ApiStatus.Internal in LSP4IJ 0.30.1, and c835be1's OpenedTextRepair implements it,
so verifyPluginInternalApis failed #693's CI (run 45227493817): the interface and the three methods it overrides
were not in verifier-lsp4ij-apis.txt. They are now, with why OpenedTextRepair needs them and when they go: with it,
once a release has redhat-developer/lsp4ij#2127. The validation of c835be1 compiled the plugin and ran the tour,
but not this check, which only `check` runs.

Validated: :lang:intellij-plugin:verifyPlugin and verifyPluginInternalApis pass locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An edit made while a file connects to a starting language server never reaches the server

1 participant