-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org.eclipse.jdt.core.formatter.tabulation.* settings are ignored #2942
Comments
I haven't tried this out yet, but I would think you need to place those JDT settings into |
That doesn’t seem to have any effect either. |
I think I found the problem. Similar to emacs-lsp/lsp-java#318 (comment) . The
So the spec expects that the client should send options for whether to use tabs/spaces and the number of spaces for a tab. The language server then overrides Lines 154 to 163 in 395b5da
Do you know what values eglot is sending to JDT-LS ? Is there a way made available to users to set this on the emacs side ? |
Unfortunately communication between eglot and jdtls is somewhat shrouded in mystery: |
I am using
jdtls
with eglot in Emacs.I have the following lines in
.settings/org.eclipse.buildship.core.prefs
:But
eglot-format
results in a formatted buffer with 8-space indentation, whether or not those lines are there.The text was updated successfully, but these errors were encountered: