prettier-vscode icon indicating copy to clipboard operation
prettier-vscode copied to clipboard

Unsaved files can't format with require config

Open ntotten opened this issue 1 month ago • 1 comments

When attempting to format a new document that is not saved or part of the workspace if require config is enabled the file cannot be formatted.

"INFO" - 4:01:59 PM] Formatting untitled:Untitled-1
["DEBUG" - 4:01:59 PM] Using bundled version of prettier.
["INFO" - 4:01:59 PM] EditorConfig support is enabled, checking for .editorconfig files
["INFO" - 4:01:59 PM] No local configuration (i.e. .prettierrc or .editorconfig) detected, will fall back to VS Code configuration
["INFO" - 4:01:59 PM] Require config set to true but no config file found, disabling formatting.
["INFO" - 4:02:17 PM] Using config file at /Users/ntotten/zuplo/docs/.prettierrc
["INFO" - 4:02:17 PM] EditorConfig support is enabled, checking for .editorconfig files
["INFO" - 4:02:17 PM] Resolved config:
{
  "useTabs": false,
  "tabWidth": 2,
  "endOfLine": "lf"
}

ntotten avatar Dec 04 '25 21:12 ntotten

Reproduction Repository Required

Thanks for opening this issue! To help us investigate, we need a reproduction repository.

Why we need this

Most issues are configuration-specific. Without a repo we can clone and test, we usually cannot diagnose the problem.

How to create a reproduction

  1. Create a new public GitHub repository
  2. Add the minimum files needed to reproduce the issue
  3. Include a .prettierrc or other config files you're using
  4. Edit this issue and add the repository link

Tip: The simpler the reproduction, the faster we can help!

What happens next

  • With a repo: We'll investigate and respond
  • Without a repo: This issue will be automatically closed in 7 days

Resources

github-actions[bot] avatar Dec 04 '25 21:12 github-actions[bot]