Skip to content

Feature Request: Execute on save #6

Closed

Description

@scottadamsmith

Description

In some other editors (i.e. VS Code), Prettier can be configured to format on save. It would be great to have this functionality in Visual Studio as well.

I am not sure how feasible this is as it is likely largely dependent on the capabilities of a VS extensions. Can anyone provide any insight into the level of difficulty for something like this? I am happy to look into it myself and potentially in attempt a contribution for it if the effort is realistic.

Thanks!

Activity

  1. SwannLV commented on May 2, 2018

    @SwannLV

    This would be the perfection.

  2. jesperbjensen commented on May 22, 2018

    @jesperbjensen
    Collaborator

    I’m all for it. If someone wants to help out with this feature it would be awesome. (You need to be able to turn it on and off)

  3. tommck commented on Jul 15, 2018

    @tommck
    Contributor

    I'm working on this right now, but it's proving difficult. The IVsRunningDocTableEvents3 is all Sync methods when all the current NodeProcess stuff is async.

    I may have to make a sync version of the methods in there unless @madskristensen or @jesperbjensen have any better ideas.

    Also need to figure out how to make it load at startup/opening of a solution

  4. tommck commented on Aug 26, 2018

    @tommck
    Contributor

    I figured out a hacked way. PR incoming

  5. added a commit that references this issue on Sep 6, 2018
  6. jesperbjensen commented on Sep 6, 2018

    @jesperbjensen
    Collaborator

    So this feature should be available in the CI build: http://vsixgallery.com/extension/J1da7ad9e-85b3-4a0c-8e45-b2ae59a575a7/

    Thanks to @tommck for implementing the feature. 👍🎉

  7. tommck commented on Sep 7, 2018

    @tommck
    Contributor

    Do we have plans for a release any time soon? Just curious

  8. madskristensen commented on Sep 7, 2018

    @madskristensen
    Owner

    @tommck, I can publish any time. Did you test the CI build @jesperbjensen linked to?

  9. tommck commented on Sep 7, 2018

    @tommck
    Contributor

    uhh.. .lemme try that now :)

  10. tommck commented on Sep 7, 2018

    @tommck
    Contributor

    Yep, it's working fine. You were OK with the hacked up way I did that, @madskristensen ?

  11. madskristensen commented on Sep 7, 2018

    @madskristensen
    Owner

    Yes I am

  12. tommck commented on Sep 9, 2018

    @tommck
    Contributor

    Wait, don't publish this if you haven't already

    UPDATE: Never mind.. local change issue :)

    UPDATE 2: NOT a local change issue. Don't publish this. The extension crashes every time you save on a non-supported file type. I will fix that

  13. added a commit that references this issue on Sep 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions