prettier-vscode icon indicating copy to clipboard operation
prettier-vscode copied to clipboard

Cannot use any prettier plugins with `yarn 4 + PnP`

Open ClementValot opened this issue 6 months ago • 4 comments

Summary

Re-opening of https://github.com/prettier/prettier-vscode/issues/3380

Bug still exists, workaround with unplug and require.resolve() doesn't work with current setup

yarn Plug'n'Play: 4.9.2
prettier: 3.6.3
prettier-plugin-jsdoc: 1.3.3
esbenp.prettier-vscode: 11.0.0
VSCode: 1.101.2
const config = {
  ....
  plugins: [require.resolve('prettier-plugin-jsdoc')],
};

module.exports = config;

With current setup, extensions fail with the cryptic message and log: Extension host terminated unexpectedly 3 times within the last 5 minutes.

Github Repository to Reproduce Issue

See details in previous issue https://github.com/prettier/prettier-vscode/issues/3380

Thanks everyone!

ClementValot avatar Jul 02 '25 10:07 ClementValot

Please check if the issue repros with latest 1.107 insiders with user setup, for system setup it is tracked in https://github.com/microsoft/vscode/issues/259505

deepak1556 avatar Dec 10 '25 16:12 deepak1556