GithubHelp home page GithubHelp logo

Comments (14)

CiGit avatar CiGit commented on June 6, 2024 1

Thank you, that was fast. I'll try both plugins.

from prettier-vscode.

CiGit avatar CiGit commented on June 6, 2024

Could not reproduce it with these steps. This extension runs only on javascript and javascriptreact. We'll need some more information.

  • Extension version?
  • Vscode version?
  • OS?
  • What language mode is selected for your package.json (bottom right of the editor)?
  • Are there some logs in the developer tools Help -> Toggle developer tools

from prettier-vscode.

CiGit avatar CiGit commented on June 6, 2024

It may be an extension conflict. To find out, it will take some time if you have a lot of enabled extensions.

from prettier-vscode.

screendriver avatar screendriver commented on June 6, 2024
  • Extension version 0.9.0
  • VSCode version 1.9.1
  • mac OS sierra
  • package.json language is JSON

Ah I believe I found it out. I also installed Add New Line to Files to ensure that there is always a new line at the end of the file. If I disable it it works.

It seems that there is a conflict between your plugin and the other one 🤔

from prettier-vscode.

CiGit avatar CiGit commented on June 6, 2024

I've reproduced the problem with prettier disabled and Add New Line to Files enabled.
So the conflict with this extension can be eliminated. But it doesn't occur without formatOnSave. There is an embed formatter for JSON tho.

FormatOnSave is in Code since September 2016. Add New Line to Files's last release is in June 2016. I think it needs to be updated.

from prettier-vscode.

screendriver avatar screendriver commented on June 6, 2024

So the solution would be to open an issue there?

from prettier-vscode.

CiGit avatar CiGit commented on June 6, 2024

I think it's the best idea. We can safely assume that the issue is not with this extension.
BTW the embed formatter removes last empty line for JSON.

from prettier-vscode.

esbenp avatar esbenp commented on June 6, 2024

@CiGit I have added you as collaborator - feel free to take any action you feel appropriate :-)

from prettier-vscode.

screendriver avatar screendriver commented on June 6, 2024

I opened an issue there jdforsythe/vscode-add-new-line-to-files#1

from prettier-vscode.

CiGit avatar CiGit commented on June 6, 2024

@esbenp Thank you. With great power ...

@screendriver It's not a conflict with this one. It does exactly the same if you disable prettier.

from prettier-vscode.

screendriver avatar screendriver commented on June 6, 2024

Just a little update: I installed another plugin called final-newline. With this one it seems to work together with prettier-vscode

from prettier-vscode.

CiGit avatar CiGit commented on June 6, 2024

Great. Problem solved on this side. Closing

from prettier-vscode.

screendriver avatar screendriver commented on June 6, 2024

Yepp 😎

Thank you for your quick help!

from prettier-vscode.

github-actions avatar github-actions commented on June 6, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from prettier-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.