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

Deno support

Open OzzieOrca opened this issue 1 year ago • 2 comments
trafficstars

Is your feature request related to a problem? Please describe. Do you have any suggestions for using the VS Code Prettier extension in a Deno project (which doesn't have package.json or node_modules) and specifying a specific version to match the project?

We're able to run Prettier as a script locally and on CI with these tasks configured in deno.jsonc:

{
  "tasks": {
    "prettier:check": "deno run --allow-read --allow-sys=uid --allow-env=TMPDIR,TMP,TEMP,HOME 'npm:[email protected]' . --list-different",
    "prettier:write": "deno run --allow-read --allow-sys=uid --allow-env=TMPDIR,TMP,TEMP,HOME --allow-write 'npm:[email protected]' . --write"
  }
}

but Deno's Prettier install isn't resolved by this extension.

Describe the solution you'd like It would be nice to have the extension resolve the version of Prettier installed by Deno or be able to pick a fallback version.

Describe alternatives you've considered I've tried installing Prettier with npm up a directory or globally installing it and enabling Prettier: Resolve Global Modules but couldn't seem to get the extension to resolve that Prettier instance.

Additional context I'd assume that other frameworks without npm or things like Yarn PnP would have similar issues.

OzzieOrca avatar Mar 05 '24 20:03 OzzieOrca

This issue has been labeled as stale due to inactivity. Reply to keep this issue open.

github-actions[bot] avatar May 05 '24 01:05 github-actions[bot]

As far as I'm aware this hasn't been addressed or triaged. It would be nice if this extension worked as well with Deno as it does with a project containing a package.json file or there was explicit config for resolving prettier without a package.json.

OzzieOrca avatar May 05 '24 02:05 OzzieOrca

This issue has been labeled as stale due to inactivity. Reply to keep this issue open.

github-actions[bot] avatar Jul 05 '24 01:07 github-actions[bot]