You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the Java18 snippet tag, all Javadoc is still joined to a single line.
I copied the formatter settings from an Eclipse project, where everything works fine.
Environment
Operating System: Windows 11
JDK version: OpenJDK 21
Visual Studio Code version: 1.94.0
Java extension version: 1.35.1
Steps To Reproduce
Create a Java file with this content
public class SnippetTest {
/**
* This is a snippet test.
* {@snippet :
* System.out.println("Hello World");
* }
* @param args
* the arguments
*/
public static void main(final String[] args) {
System.out.println("Hello World");
}
}
Format the file with the attached settings.
Current Result
public class SnippetTest {
/**
* This is a snippet test. {@snippet : System.out.println("Hello World"); }
*
* @param args
* the arguments
*/
public static void main(final String[] args) {
System.out.println("Hello World");
}
}
It might be related to our implementation of @snippet support in JDT-LS, eclipse-jdtls/eclipse.jdt.ls#2028 . There's a few things lacking from our support listed there.
If I use the Java18 snippet tag, all Javadoc is still joined to a single line.
I copied the formatter settings from an Eclipse project, where everything works fine.
Environment
Steps To Reproduce
Current Result
Expected Result
see the first code block
Additional Informations
format.zip
The text was updated successfully, but these errors were encountered: