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 2d133a2
Showing 1 changed file with 1 addition and 1 deletion.
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 2d133a2

Please sign in to comment.