Skip to content

elm-format not running when using autosave #476

@kevinrjones

Description

@kevinrjones

In my global vscode setup I have "files.autoSave": "afterDelay", I also have

 "[elm]": {
        "editor.formatOnSave": true
    },

and "editor.formatOnSave": true,

If I change a file and save it manually then elm-format runs, if I change a file and leave it to auotsave then elm-format does not run although the file is saved

I have stripped by settings.json right back so I only have to two settings (formatOnSave and files.autoSave)

Expected Behavior

elm-format should run on auto-save

Current Behavior

elm-format does not run on auto-save, on any of the settings ("afterDelay", "onFocusChange", "onWIndowChange")

Possible Solution

Steps to Reproduce (for bugs)

  1. Add "files.autoSave": "afterDelay" to your settings.json
  2. Add "editor.formatOnSave": true, to your settings.json
  3. Change an elm file, it will save but not format

Context

Your Environment

  • Version used: 2.6.0
  • VSCode 1.74.2:
  • node.js v19.3.0:
  • Operating System and version: Mac OSX Ventura 13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions