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

Await then block destructuring syntax being reformatted to invalid syntax #259

Closed
saikatdas0790 opened this issue Nov 14, 2021 · 0 comments · Fixed by #260
Closed

Await then block destructuring syntax being reformatted to invalid syntax #259

saikatdas0790 opened this issue Nov 14, 2021 · 0 comments · Fixed by #260
Labels
bug Something isn't working

Comments

@saikatdas0790
Copy link

When I have an await then block, that looks like this and I'm trying to destructure that data, the plugin seems to be removing the data part automatically.
image

On saving the data gets removed
image

The response object looks like this
image
image

The data property is an array of objects

This syntax should work as illustrated here:
https://replit.com/join/qwwgddonou-saikatdas3

image

System (please complete the following information):

  • OS: Windows with WSL 2 and Ubuntu
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode
@dummdidumm dummdidumm transferred this issue from sveltejs/language-tools Nov 14, 2021
@dummdidumm dummdidumm added the bug Something isn't working label Nov 14, 2021
dummdidumm pushed a commit to dummdidumm/prettier-plugin-svelte that referenced this issue Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants