mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-10 20:41:59 +00:00
9c6a0d98ed
This fixes #8823 by setting the current working directory we use when
launching our own `prettier` process via `node` to the project path.
Why does this fix it?
We already *did* read the correct configuration options for `prettier`
from any configuration files, we also correctly inferred which
`prettier` plugins to use, but somehow when running
./node_modules/.bin/prettier my-file.tsx
produced different results compared to `prettier` in Zed.
But we *do* pass the right options to `prettier.format` when calling it
here:
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |