Skip to content

Skip Equinox splash updates for JDT LS on macOS - #4576

Merged
datho7561 merged 1 commit into
redhat-developer:mainfrom
anyerqi:fix/macos-jdtls-nosplash
Nov 26, 2026
Merged

datho7561 merged 1 commit into
redhat-developer:mainfrom
anyerqi:fix/macos-jdtls-nosplash

Conversation

@anyerqi

@anyerqi anyerqi commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Refs #4292, specifically the case where macOS marks the process as unresponsive while Java language requests still succeed.

What changes

Pass Equinox's -nosplash launcher argument on macOS for both the standard and syntax servers. Even when no splash window is configured, Equinox's startup monitor can still invoke updateSplash(). On macOS that calls the native event dispatcher, which calls [NSApplication sharedApplication] and registers a WindowServer connection for JDT LS. -nosplash skips that update path.

In the affected session, WindowServer reported connectionIsUnresponsive: 1 for the original process. The same PID still handled a new Java validation request in VS Code.

Verification

  • On Apple Silicon macOS 27.0.1 with the extension's bundled Temurin 25.0.5, both unpatched launch modes registered a WindowServer connection. With only -nosplash added, neither mode registered a connection during the observation window.
  • initialize and textDocument/documentSymbol passed for all four test launches. The standard mode used the Unix socket transport and syntax mode used stdio.
  • -Djava.awt.headless=true alone still produced a WindowServer connection in a separate control.
  • The extension compiled successfully and git diff --check passed.
  • Built the patched extension from this branch and ran it in isolated VS Code profiles. Standard mode delivered the expected Java syntax diagnostic. LightWeight mode returned a Java document symbol through the extension API. Both launches included -nosplash.

Signed-off-by: hunter <11315620+anyerqi@users.noreply.github.com>
@datho7561

Copy link
Copy Markdown
Contributor

I can't replicate the original issue; it looks the same in Activity Monitor before and after this change for me. I'm testing on macOS 15.7.9.

@shin19991207 are you able to replicate this? If so, does this fix it for you?

@anyerqi

anyerqi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@datho7561 Thanks for checking on macOS 15.7.9. I found a trigger using normal desktop activity on macOS 27.0.1 (Apple Silicon, Java extension 1.59.2026112008, bundled Temurin 25.0.5).

Steps to reproduce

  1. Connect an external display. In VS Code, open a folder containing Hello.java and wait for the Java language server to finish starting.
  2. Find the JDT LS PID with pgrep -fl 'org.eclipse.jdt.ls.core.id1'. In Activity Monitor, choose View → All Processes and locate that PID.
  3. Disconnect the external display, wait about 10 seconds, then reconnect it. Check the same PID again. In one run the unpatched process was marked Not Responding while the display was still disconnected. In another it was marked when the display was reconnected.
  4. Repeat with this PR applied. Use the new PID and confirm its command line includes -nosplash. The patched process stayed responsive in the same test.

What I observed

Equinox can call its splash update callback even when no splash screen is shown. On macOS that callback enters the Cocoa event dispatcher, which calls [NSApplication sharedApplication]. The unpatched JDT LS process then registers a WindowServer connection. Passing -nosplash skips the callback, and the patched process did not register that connection in the comparison.

A listen-only Quartz tap on the unpatched PID captured a systemDefined event (type 14, subtype 2) shortly after each display transition. No events were injected. The unpatched PID still returned Java diagnostics after Activity Monitor marked it unresponsive. This ties the symptom to the WindowServer connection while the language server continues to work. The trace does not identify the exact message whose handling caused the timeout.

I haven't verified the hotplug repro on macOS 15.7.9.

@shin19991207

Copy link
Copy Markdown
Member

@datho7561 I was able to reproduce the issue on macOS 26.6.2. I tried launching JDT.LS through PDE with -nosplash added to the program arguments, and can confirm that it fixes the issue on my end.

@datho7561 datho7561 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it's safe to go ahead with merging this, then. Thanks for checking, Morgan!

@datho7561
datho7561 merged commit a918551 into redhat-developer:main Nov 26, 2026
2 checks passed
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.

macOS: JDTLS java process shows “Not Responding” in Activity Monitor

3 participants