Skip to content

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

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

Closed
egorovli opened this issue May 24, 2018 · 2 comments

Comments

@egorovli
Copy link
Contributor

  • 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

@chenxsan
Copy link
Member

I don't think this extension support Format document. You could check #9.

@egorovli
Copy link
Contributor Author

egorovli commented May 25, 2018

@chenxsan thanks, I'll switch to "Fix all auto-fixable problems". Weird though, that it used to work before ¯\_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants