Skip to content

Set "editor.formatOnSaveTimeout" appropriately #1357

Closed

Activity

  1. DonJayamanne commented on Apr 10, 2018

    @DonJayamanne

    Brett Cannon (@brettcannon) don't you mean yapf (for formatting).

  2. brettcannon commented on Apr 11, 2018

    @brettcannon
    MemberAuthor

    Yes :)

  3. changed the title [-]Set "editor.formatOnSaveTimeout" appropriately for Pylint[/-] [+]Set "editor.formatOnSaveTimeout" appropriately[/+] on Apr 11, 2018
  4. MikhailArkhipov commented on Apr 16, 2018

    @MikhailArkhipov

    We don't know the exact value. Formatting can take seconds.

  5. removed this from the June 2018 milestone on Jun 4, 2018
  6. DonJayamanne commented on Oct 2, 2018

    @DonJayamanne

    Brett Cannon (@brettcannon)
    We don't have control over this value.
    The only way we can update it is - extension manually updates the value in the file.
    Is that what you're after? Or are you after some documentation that points users to this?

  7. brettcannon commented on Oct 2, 2018

    @brettcannon
    MemberAuthor

    Don Jayamanne (@DonJayamanne) The announcement suggested that extensions can set language-specific values to adjust accordingly.

  8. DonJayamanne commented on Oct 2, 2018

    @DonJayamanne

    lol, checked it out, basically we use the existing api to update the settings.json files to provide our defaults (just as we update settings.json to update python.pythonPath).
    I would have expected something better.

    This means we're going to have to add code in initialization of the extension to update these settings and keep track of this fact (in case user changes it, reverts it).

    I.e. we (extension) needs to update it manually, there's no magic/new API.
    The announcement seems to be misleading, unless I have missed something.

  9. brettcannon commented on Oct 2, 2018

    @brettcannon
    MemberAuthor

    Ugh, forget that then.

  10. DonJayamanne commented on Oct 3, 2018

    @DonJayamanne

    Nope, it is possible via configuration settings.

  11. DonJayamanne commented on May 16, 2019

    @DonJayamanne

    Solution

  12. uriva commented on Sep 9, 2019

    @uriva

    Hey, I think I'm encountering this issue, every time I hit ctrl-s the code jumps between the isort option and the black option intermittently.

    Is there a temporary solution other than disabling either one?

    These settings didn't work for me:

    "editor.formatOnSaveTimeout": 3000,
    "editor.codeActionsOnSaveTimeout": 3000,
    
  13. brettcannon commented on Sep 18, 2019

    @brettcannon
    MemberAuthor

    uriva please follow #6933 for that issue.

  14. luabud commented on Nov 24, 2020

    @luabud
    Member

    Closing as stale.

  15. locked as resolved and limited conversation to collaborators on Nov 25, 2021
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