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

CodeAction for missing root end tag #595

Merged
merged 1 commit into from
Nov 25, 2019

Conversation

NikolasKomonen
Copy link
Contributor

Fixes #588

Signed-off-by: Nikolas Komonen nikolaskomonen@gmail.com

@NikolasKomonen NikolasKomonen changed the title CodeACtion for missiing root end tag CodeAction for missing root end tag Nov 15, 2019
@angelozerr
Copy link
Contributor

@NikolasKomonen I think we should manage ETagRequired in this PR too, because your code action works only for root element:

<a>

but it doesn't work when a is not a root element:

<root>
  <a>
</root>

because in this case it's a ETagRequired error code. Could you please support it in this PR and write tests about that please.

@NikolasKomonen
Copy link
Contributor Author

@angelozerr I've updated to also work for ETagRequired, let me know if anything else needs to be updated

@angelozerr
Copy link
Contributor

angelozerr commented Nov 22, 2019

@NikolasKomonen please fix my 2 little comments and after that we can merge it.

Creates a code action for both MarkupEntityMismatch and ETagRequired errors

Fixes eclipse#588

Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
@NikolasKomonen
Copy link
Contributor Author

@angelozerr Hey, I've update the last 2 things. It should be good to go now.

@angelozerr angelozerr merged commit 5606fa7 into eclipse:master Nov 25, 2019
@angelozerr
Copy link
Contributor

Nice work @NikolasKomonen , thanks!

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.

CodeAction for MarkupEntityMismatch
2 participants