Skip to content

VS Code's Format document falls back to default formatter instead of Standard #60

Closed
@egorovli

Description

@egorovli
  • StandardJS version? 11.0.1

  • VSCode version 1.23.0

  • StandardJS configuration?

In package.json:

{
  "standard": {
    "parser": "babel-eslint",
    "env": [
      "jest"
    ]
  }
}

In VS Code prefs:

{
  "javascript.validate.enable": false,
  "standard.usePackageJson": true,
  "standard.validate": [
    "javascript",
    "javascriptreact"
  ]
}
  • What do you have in the OUTPUT panel?
    Output panel is empty

I've always used "Format document" ⌥ Option+⇧ Shift+F to format .js files with Standard, but it seems like with the last VS Code update it sometimes stops working. Reloading window helps, but not for a long time. See video:

https://www.dropbox.com/s/wkigo5huor64xp3/Standard%20works%20only%20after%20VS%20Code%20reload.mp4?dl=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions