Skip to content
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

ICompletionParticipant#onXMLContent is not called for CDATA #1699

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Nov 7, 2024

@laeubi laeubi marked this pull request as ready for review November 7, 2024 10:27
@laeubi
Copy link
Contributor Author

laeubi commented Nov 7, 2024

@angelozerr can you review this?

This fixes the testcase for me, without my change testcase fails, with my change test-case succeeds.

@angelozerr
Copy link
Contributor

@angelozerr
Copy link
Contributor

I wonder if request should have a flag like isInCDATA, because when apply completion is done, it must not remove the CDATA.

Perhaps we don't need it, but I think your test class should have some tests with apply completion with CDATA and without CDATA).

@laeubi
Copy link
Contributor Author

laeubi commented Nov 7, 2024

Any hint how to best test that case?

@laeubi
Copy link
Contributor Author

laeubi commented Nov 7, 2024

I looked at the failing test and I'm not sure if this needs to be adjusted, what seem to happen is that now a completion (to close the a tag) is suggested because before CDATA section was a "terminating" element, if I change the test to place the cursor before the cdata section then even three completions are suggested (including the close with a tag) so it seems that just the expectation of the test ist wrong.

@laeubi
Copy link
Contributor Author

laeubi commented Nov 7, 2024

Now it works for windows but fails for mac/linux...?!?

@angelozerr
Copy link
Contributor

Now it works for windows but fails for mac/linux...?!?

We have some tests which uses Timeout and perhaps they failed, I have restarted the CI build and it is working perfectly.

@angelozerr
Copy link
Contributor

Ok let's merge the PR and when you will implement the feature with lemminx-maven we will see if there are some trouble.

Thanks @laeubi !

@angelozerr angelozerr merged commit 2482d4a into eclipse-lemminx:main Nov 7, 2024
6 checks passed
@angelozerr
Copy link
Contributor

Fixes #1694

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.

2 participants