Skip to content

formatOnSave not honored #154384

@rogerfar

Description

@rogerfar

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.69.0
  • OS Version: Windows 10

Steps to Reproduce:

I have this settings.json file:

{
    "editor.formatOnSave": false,
    "editor.defaultFormatter": null,
    "[typescript]": {
        "editor.defaultFormatter": null
    },
    "editor.codeActionsOnSave": {
        "source.fixAll": false,
        "source.fixAll.eslint": false
    }
}

When I change a Typescript file and save it, it still formats the file.
But when doing "format file" it does not format the file as expected.

Video example (watch the top 2 lines):
10BBEF3E-F8A9-4741-B64D-FBA1C6A1CAED

Metadata

Metadata

Assignees

Labels

formattingSource formatter issuesinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions