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

Prettier VS Code extension sometimes makes Format Document behave erratically #5928

Open
jankeromnes opened this issue Aug 13, 2019 · 1 comment
Labels
bug bugs found in the application vscode issues related to VSCode compatibility

Comments

@jankeromnes
Copy link
Member

Description

When I install the Prettier VS Code extension in Theia (Gitpod), Format Document seems to start behaving erratically, sometimes deleting or repeating random sequences of characters.

Here is a screencast: https://youtu.be/VyrfhW9gQ4I

Reproduction Steps

  1. Open the shields.io repository in Gitpod: https://gitpod.io/#https://github.com/badges/shields
  2. Open any .js file
  3. Try "Format Selection" and "Format Document" a few times: nothing strange yet
  4. Install the Prettier VS Code extension
  5. Try "Format Document" again, e.g. by wrongly formatting some code first: very soon, it starts removing or repeating random characters

OS and Theia version: Mac OS, Firefox Nightly, latest Theia in Gitpod

Diagnostics:

@akosyakov akosyakov added bug bugs found in the application vscode issues related to VSCode compatibility labels Aug 13, 2019
@Eliav2
Copy link

Eliav2 commented Apr 12, 2021

it seems that the formatting is not done with prettier no matter what you configure, Someone succeeded in configure and using prettier on a gitpod?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

3 participants