- Added
Format selection
command - All selections/cursors are now maintained after formatting
- A warning is now shown if a document uses an unsupported syntax when formatting manually
- (Breaking) Removed compatibility mode
- Renamed
Format with Prettier
toFormat
and moved it into a submenu - Nova will now wait for formatting before saving instead of saving twice
- Formatting a file while the extension is installing Prettier will be delayed instead of getting ignored entirely
- Disabling debug logging now also disables logging about finding Prettier
- Fixes project Prettier not getting found in some cases
- Fixes last line of code getting duplicated in some cases
- Fixes position of column indicator offset by -1
- Fixes a possible error when trying to check Prettier version
- Fixes (PHP) syntax errors without a column indicator causing an error
- Fixes (Twig) syntax errors with a double column indicator causing an error
- Support syntax errors thrown by
prettier-plugin-twig-melody
- Added preferences to set default Prettier configuration globally and per-project.
- Added preference (global and per-project) to ignore files for which no Prettier configuration file can be found when formatting on save.
- Added preference (global and per-project) to ignore remote files when formatting on save.
- Added preference to disable debug logging (errors are always logged).
- Added an extra warning about future compatibility mode removal
- Fixes extension failing to parse NPM output and failing to start when no project Prettier is installed.
- Actually fixes parser overrides in
.prettierrc
file getting ignored.
- Only use Prettier available in the project if it's a direct project dependency.
- Take
.editorconfig
into account when determining formatting configuration. - The
Format with Prettier
command now ignores the.prettierignore
file.
- Fixes parser overrides in
.prettierrc
file getting ignored. - Fixes formatting an unsaved file outside of a workspace causing an error.
- Fixes document text getting mixed up if changes are made during formatting.
- Added global setting to disable
Format on save
for specific syntaxes. - Included PHP plugin with bundled Prettier.
- More events are logged to the extension console.
- Plugin support is now enabled by default, but can be disabled when errors occur.
- Selected text now remains selected after formatting (doesn't support multiple selections / cursors).
- Folded code will now remain folded unless formatting changes it.
- Improved formatting speed.
- The
Format with Prettier
command is now available for all syntaxes, so it works with plugins. - Show syntax errors from PHP plugin inline.
- Don't show error when trying to format a file that has no parser available.
- Fixes an error trying to log errors occurring while looking up configuration.
- Show notification about any unhandled errors during formatting.
- Fixes syntax errors preventing formatting no longer getting reported.
- Fixes issues on older macOS releases.
- When formatting on save, automatically save the file again if Nova thought formatting took too long and saved the unformatted version.
- Fixes unnecessary document updates when it's already properly formatted.
- Support for Prettier plugins (requires enabling
Run Prettier in a separate process (experimental)
).
- Improved performance when formatting large files (requires enabling
Run Prettier in a separate process (experimental)
). - Stop formatting PHP, unless the PHP plugin is used.
- Set a default keyboard shortcut for
Format with Prettier
command: ⌥⇧F. - Added a global
Format on save
preference that can be overridden by project preferences. - Support formatting of HTML in PHP files.
- Fall back to bundled Prettier when loading the project's Prettier installation fails.
- Fixes files opened after disabling formatting on save getting formatted on save.
- Support formatting of files in non-project windows.
- Support working on the Prettier repository.
- Automatically update the bundled installation of Prettier if the extension includes a new version.
- (Breaking) Updated bundle Prettier to 2.1.2.
- Support formatting of new files that have never been saved.
- Include CSS in supported syntaxes.
- Don't require editor focus for the
Format with Prettier
to be available. - Log non-syntax errors from Prettier to the extension console properly.
- Include stack trace with errors logged in the extension console.
- Added a warning with help when Prettier (and NPM) can't be found.
- Use Prettier installed in the project's node_modules. If none is available the extension falls back to the bundled Prettier.
- Automatically find and load parsers provided by Prettier.
- Use .prettierignore to determine which files to format (.prettierignore needs to be in the project root).
- Added a warning when an error occurs while looking up the Prettier configuration for a file.
- (Breaking) Updated to Prettier 2.0.5.
- Don't include prettier in extension, but install when activating.
- Initial release.