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

Request textDocument/formatting failed with message: Void elements do not have end tags "image" #1033

Closed
tianyiw2013 opened this issue Mar 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@tianyiw2013
Copy link

tianyiw2013 commented Mar 13, 2022

Code

<template>
    <image></image>
</template>

Output

  Request textDocument/formatting failed.
  Message: Request textDocument/formatting failed with message: Void elements do not have end tags "image"
  Code: -32603 

Expect

Compatible with end tags, don't abort because of end tags.
Give at most a warning, but don't abort formatting.
Volar should be more tolerant of errors, rather than aborting formatting because of errors.

@johnsoncodehk
Copy link
Member

Good point. :)

@johnsoncodehk johnsoncodehk added the enhancement New feature or request label Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants