-
Notifications
You must be signed in to change notification settings - Fork 143
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
[23] Folding a markdown region hides the first line of subsequent Java #2943
base: BETA_JAVA23
Are you sure you want to change the base?
Conversation
This fix introduces a problem in a corner case when the markdown ends with a param or other incomplete tag and no whitespace before the closing \n, which is not part of the markdown doc. I have adjusted a testcase to pass, but will take that up via a different issue. |
8a8304f
to
e8b552b
Compare
OK, this is stuck with a hung test case. I don't think this is going in for the GA release. Will take it up post-merge. |
time to try again ? 😄 |
I recall this being held is related to eclipse-jdt/eclipse.jdt.ui#1848, which was on hold for another reason. But now I see that is green. Will take up both if time permits. |
Strange things going on here. I pulled the change and locally merged with BETA_JAVA24. Result:
|
@@ -1980,6 +1981,7 @@ protected int getNextToken0() throws InvalidInputException { | |||
} | |||
} | |||
if (!lineBeginsWithMarkdown()) { | |||
this.currentPosition--; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting this one line change brings back proper rendering to HTML and fixes org.eclipse.jdt.ui.tests.hover.MarkdownCommentTests
Found this only by experimentation, have no idea what I'm talking about :)
See #3760 |
code
What it does
Fixes eclipse-jdt/eclipse.jdt.ui#1615
How to test
Author checklist