-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Code formatting is not working with quarkus-java11 plugin #17560
Comments
Che-Theia does not want to format file when several formatters are registered for the language. Quarkus11 plugin adds folowing extensions to Che-Theia
Java and vscode-quarkus extensions register formatters for Java language. Command to format the document is displayed and enabled in the context menu for java file, but it does nothing. I recorded a small video how VS Code behaves when I tried to run it with those three extensios https://www.youtube.com/watch?v=ekpMNaLvCWo Corresponding issue in Theia upstream eclipse-theia/theia#8354 |
but shouldn't it just pick the last one? |
When possible, we should give the choice to the user. Also this functionality is bound to come up again, so having it in Theia makes sense and is worth the effort. |
it seems Quarkus extension shouldn't do formatting anymore redhat-developer/vscode-quarkus#166 redhat-developer/quarkus-ls#332 |
@vitaliy-guliy can you check the latest |
There is a PR eclipse-che/che-plugin-registry#575 with quarkus 1.6.0 Devfile to test
|
we should have as default setting for new vscode java versions:
|
@benoitf thanks. The devfile in my previous comment is updated. |
@vitaliy-guliy |
@benoitf You won't believe it, but I set it to 'true' automatically. And as it turned out, it also works. |
@vitaliy-guliy yes it works due to implementation details but it's not really what is expected
|
I think we can close this, as we have vscode-quarkus 1.6.0 which does not contribute any formatters anymore. The theia issue is separate and can be handled as such. |
so fixed with eclipse-che/che-plugin-registry#575 and redhat-developer/quarkus-ls#332 |
Correct |
Describe the bug
Tried to format Java code with
Code completion works fine.
The text was updated successfully, but these errors were encountered: