Closed aidanm1999 closed 3 months ago
This issue has been labeled as stale due to inactivity. Reply to keep this issue open.
Still an issue
Still an issue
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Summary
Prettier does not format in multi-folder repositories whilst using the
.code-workspace
config.Github Repository to Reproduce Issue
https://github.com/aidanm1999/prettier-vscode-multi-workspace-config
This repository is set up like so:
workspace-1
- a folder containing a dummy JSON document to simulate formattable filesgroup-1
- a folder containing 2 workspacesworkspace-2
- a folder containing a dummy JSON document to simulate formattable filesworkspace-3
- a folder containing a dummy JSON document to simulate formattable files.prettierrc
- default prettier config.prettierignore
- default prettier ignore configrepo.code-workspace
- file containing workspace configSteps To Reproduce:
repo.code-workspace
repo.code-workspace
and comment out folders 1, 2 and 3repo.code-workspace
Expected result
The Prettier output should have logged a successful reformat
Actual result
The prettier output errors out:
Now this would be fine if you could write
${workspaceFolder:Root}/.prettier
, however this does not resolve:It would be ideal if the Prettier extension could resolve the
workspaceFolder
or bubble up a search to look at parent, grandparent or great-grandparent directories.Additional information
VS Code Version:
1.84.2
Prettier Extension Version:
10.1.0
OS and version:
MacOS Sonoma 14.1
Prettier Log Output
Relevant logs logged above