You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VSCode settings, editor.formatOnSave setting has the following description:
Format a file on save. A formatter must be available, the file must not be saved after delay, and the editor must not be shutting down.
"the file must not be saved after delay" part made me assume that the format on save feature will never work when files.autoSave is set to afterDelay.
But that's not true because the formatting is still applied when the file is saved explicitly.
I understand that what you're trying to communicate is that the formatting won't be applied automatically, when the file is saved automatically. But it can still be applied manually when the file is explicitly saved.
The same is true for the descriptions of notebook.formatOnSave and notebook.codeActionsOnSave settings. editor.codeActionsOnSave is an outlier since it doesn't contain that part in the description, but the same is true for this option as well, so it can be updated for consistency.
Attaching related screencasts, to demonstrate.
editor.formatOnSave with auto save set to "off":
auto-save-off-file-format.mov
editor.formatOnSave with auto save set to "afterDelay":
auto-save-on-file-format.mov
Does this issue occur when all extensions are disabled?
The problem
In VSCode settings,
editor.formatOnSavesetting has the following description:"the file must not be saved after delay" part made me assume that the format on save feature will never work when
files.autoSaveis set toafterDelay.But that's not true because the formatting is still applied when the file is saved explicitly.
I understand that what you're trying to communicate is that the formatting won't be applied automatically, when the file is saved automatically. But it can still be applied manually when the file is explicitly saved.
The same is true for the descriptions of
notebook.formatOnSaveandnotebook.codeActionsOnSavesettings.editor.codeActionsOnSaveis an outlier since it doesn't contain that part in the description, but the same is true for this option as well, so it can be updated for consistency.Attaching related screencasts, to demonstrate.
editor.formatOnSavewith auto save set to "off":auto-save-off-file-format.mov
editor.formatOnSavewith auto save set to "afterDelay":auto-save-on-file-format.mov
Does this issue occur when all extensions are disabled?
Yes
System info
1.93.1 (Universal)Darwin arm64 23.6.0Steps to Reproduce:
You can try to reproduce what is depicted in the second video above.
editor.defaultFormattersetting tovscode.typescript-language-features.editor.formatOnSavesetting.files.autoSavetoafterDelay.The file is not auto-formatted after step 5 even though the file is auto saved, but it is after step 6 (the whitespace added in step 5 is gone).