Skip to content

Unsaved files can't format with require config #3885

@ntotten

Description

@ntotten

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"
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneed-more-infoFurther information is requestedtriage-pendingAwaiting initial triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions