Skip to content

Commit

Permalink
fix: Format vscode-userdata files. Fixes prettier#2226 (prettier#2648)
Browse files Browse the repository at this point in the history
* fix: format vscode-userdata files. Fixes prettier#2226

* docs: use .prettierrc config for settings.json (prettier#2226)

Co-authored-by: Nathan Totten <[email protected]>
  • Loading branch information
Antyos and ntotten authored Aug 20, 2022
1 parent 4aab30f commit 1b7e051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to the "prettier-vscode" extension will be documented in thi
## [Unreleased]

- Added VS Code sponsorship link
- Use config from `.prettierrc` when formatting VS Code user `settings.json`. Fixes [[#2226](https://github.com/prettier/prettier-vscode/issues/2226)].

## [9.7.0]

Expand Down
2 changes: 1 addition & 1 deletion src/ModuleResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class ModuleResolver implements ModuleResolverInterface {
{ fileName, uri }: TextDocument,
vscodeConfig: PrettierVSCodeConfig
): Promise<"error" | "disabled" | PrettierOptions | null> {
const isVirtual = uri.scheme !== "file";
const isVirtual = uri.scheme !== "file" && uri.scheme !== "vscode-userdata";

let configPath: string | undefined;
try {
Expand Down

0 comments on commit 1b7e051

Please sign in to comment.