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

elm-format not running when using autosave #476

Open
kevinrjones opened this issue Jan 4, 2023 · 0 comments
Open

elm-format not running when using autosave #476

kevinrjones opened this issue Jan 4, 2023 · 0 comments

Comments

@kevinrjones
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant