mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 09:02:26 +03:00
e5bd9f184b
This fixed the issue that prettier plugins were not picked up. The old code would always send an empty array to the prettier plugin that happens inside the `prettier_server.js`. **Before** The `options.plugins` key is an empty array, which is not correct. ```log stderr: Resolved config: {"singleQuote":true,"trailingComma":"all","plugins":["prettier-plugin-organize-imports"]}, will format file '/Users/remcosmits/Documents/code/prettier-test/src/app/page.tsx' with options: {"singleQuote":true,"trailingComma":"all","plugins":[],"parser":"typescript","path":"/Users/remcosmits/Documents/code/prettier-test/src/app/page.tsx"} ``` https://github.com/zed-industries/zed/assets/62463826/52f2aad0-2f96-43a9-81ec-9d4630c495b2 **After** The `options.plugins` contains the `prettier-plugin-organize-imports` plugin as expected. ```log stderr: Resolved config: {"singleQuote":true,"trailingComma":"all","plugins":["prettier-plugin-organize-imports"]}, will format file '/Users/remcosmits/Documents/code/prettier-test/src/app/page.tsx' with options: {"singleQuote":true,"trailingComma":"all","plugins":["prettier-plugin-organize-imports"],"parser":"typescript","path":"/Users/remcosmits/Documents/code/prettier-test/src/app/page.tsx"} ``` https://github.com/zed-industries/zed/assets/62463826/9045028d-aeca-4df1-819c-01905d83216c Release Notes: - Fixed send plugins correctly to the prettier plugin ([#8841](https://github.com/zed-industries/zed/issues/8841)). |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |