- Fix crash on activation and configuration reload when no text editor is active (
window.activeTextEditorisnull). Closes #35, #43. - Reload settings per-document on every format call, so per-folder and multi-root workspace settings are respected. Closes #36.
- Resolve
${workspaceFolder}and${workspaceRoot}variables in thephpcbf.standardsetting. Closes #38. - Use
event.document.uri(instead ofwindow.activeTextEditor) in theonWillSaveTextDocumentlistener to avoid potential null-reference errors.
- Allow configuration from
.vscode/settings.jsonwhen in a Multi-root project. @WraithKenny #6
- In documentation, rename named anchor.
- Minor fixes.
- Add license file.
- Update documentation.
- Fix format on save, either set setting
"phpcbf.onsave": trueor"editor.formatOnSave": true
- Add the
phpcbf.debugsetting. When enabled, output from phpcbf will be written to the console.
- Fix phpcbf hanging issue by closing stdin @shivanandwp #2
- For relative links in settings executablePath, add support for multi-root workspaces, i.e. will look for phpcbf in all workspaces
- Add support for period in the path:
{ "phpcbf.executablePath" : "./vendor/bin/phpcbf" }, i,e, the period is the workspace root
- Update documentation about the
phpcbf.executablePathsetting. - Add credits, copyright and license.
- Initial release.