prettier-vscode
prettier-vscode copied to clipboard
Unsaved files can't format with require config
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"
}
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
- Create a new public GitHub repository
- Add the minimum files needed to reproduce the issue
- Include a
.prettierrcor other config files you're using - 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