- Fix issue with prettier v3.
- Added additional debug logs.
- Create minimal textEdit.
- Removed support for legacy linter integration. See documentation on how to configure linters.
- Removed
prettier.disableSuccessMessage
, no success message any more. - Removed support for Prettier versions older than 1.13.0.
- No longer bundling linters with extension - to use install them in your package.json.
- Use Prettier to determine if a file is ignored or not instead of custom logic.
- Support for formatting of untitled files when the language is set by vim.
- Set file path config on format to assist with parser resolution.
- Less fallbacks - if you have local prettier installed it will always use that. Before if your local prettier didn't support things we would fall back to bundled prettier - this caused many errors and inconsistent behavior.
- Enhanced logging.
- Memoize package path lookup to improve perf of repeated calls to same file.
- Shows error message when outdated versions of prettier are used.
- Refreshes modules without restart for cases where prettier version or plugins are installed locally.
- Registers
.graphql
files asgraphql
language in order to provide formatting. - Ignore files are only read from the workspace folder to behave the same as prettier.
- Added configuration option
prettier.prettierPath
to override module resolution. - Added configuration option
prettier.configPath
to override configuration file resolution. - Add command
Prettier: Create Configuration File
to create a basic.prettierrc
file - Sets
resolveConfig: true
to allow parser overrides on Prettier 1.19+. #1067 - Added setting
prettier.useEditorConfig
(defaults totrue
) to allow disabling resolving.editorconfig
for Prettier config - Added
pattern
filter to formatter registrations to avoid registering incorrectly on multi-workspace projects - Added support for global module resolution, due to performance issues, global
module resolution is now off by default. Enable by setting
prettier.resolveGlobalModules
totrue
- Added setting
packageManager
to determine which package manager to use for global module resolution - Show error when prettier configuration file is invalid
- Change default configuration for
trailingComma
toes5
to match Prettier 2.0 - Change default configuration for
arrowParens
toalways
to match Prettier 2.0 - Change default configuration for
endOfLine
tolf
to match Prettier 2.0 - Added configuration option
withNodeModules
to enable processing of files in thenode_modules
folder - Update loading implicit Prettier dep from
node_modules
to only occur if explicitpackage.json
dep is not found in a parent directory - Support for additional configuration file extensions (
toml
,cls
). - Added support for custom document selectors to provide formatting on custom languages/extensions.
- Added Embedded Language Formatting option.
- Added enable setting.
- Automatically detect package manager
- Prompt to allow Prettier module to load
- Added debug mode for logging
- Handlebars support (@lifeart)
- Just bumping minor version to accommodate
yarn upgrade
to fix issue reported byyarn audit
.