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

Use language settings' prettier parsers as a fallback for files with no path #12273

Merged
merged 1 commit into from
May 25, 2024

Conversation

SomeoneToIgnore
Copy link
Contributor

Follow-up of #12095 (comment) reverting back part of #11558 that was related to language.toml parsing.

Now all extensions that define prettier_parser_name in their language configs, will enable formatting untitled buffers without any extra language settings like

{
  "languages": {
    "JSON": {
      "prettier": {
        "allowed": true,
        "parser": "json"
      }
    }
  }
}

Release Notes:

  • Improved ergonomics of untitled buffer formatting with prettier, no extra language settings are needed by default.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label May 25, 2024
@SomeoneToIgnore SomeoneToIgnore merged commit 32f11df into main May 25, 2024
8 checks passed
@SomeoneToIgnore SomeoneToIgnore deleted the kb/default-prettier-parsers branch May 25, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant