Skip to content

Commit

Permalink
Resolve config for the active file
Browse files Browse the repository at this point in the history
... not for the workspace directory.

Passing a directory to resolveConfig was broken in prettier v3.1.1, as reported here:
prettier/prettier#15879
  • Loading branch information
elieux committed Jan 17, 2024
1 parent 70604a3 commit d681cc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ All notable changes to the "prettier-vscode" extension will be documented in thi

## [Unreleased]

Fixed the issue where VSCode was misrecognizing the path in output panel due to added quotes.
- Fixed the issue where VSCode was misrecognizing the path in output panel due to added quotes.
- Fixed config resolution that caused plugins to be ignored when using Prettier 3.1.1 or later. (#3252)

## [10.1.0]

Expand Down
2 changes: 1 addition & 1 deletion src/PrettierEditService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class PrettierEditService implements Disposable {

const selectors = await this.getSelectors(
prettierInstance,
workspaceFolder.uri
document.uri
);

if (!isRegistered) {
Expand Down

0 comments on commit d681cc7

Please sign in to comment.