Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Change Log

## 0.0.10 (unreleased)
* Fix hang when phpcbf finds no violations (exit code 0 now settles the Promise). Closes #39.
* Always close stdin after spawning phpcbf, regardless of `phpcbf.debug` mode, preventing save-listener timeout errors. Closes #35.
* Replace async `fs.exists()` with synchronous `fs.existsSync()` in `addRootPath()` to eliminate race condition that left `executablePath` unresolved on first format after reload. Closes #36.
* Resolve `~`, `./`, `${workspaceFolder}`, and `${workspaceRoot}` in `phpcbf.standard` (consistent with `phpcbf.executablePath` handling). Closes #7, #38.
* Fix spurious "Formatter failed" notification β€” return empty edits instead of rejecting the provider Promise when phpcbf makes no changes. Closes #19.
* Fix stdout capture for exit code 3 errors β€” `stdout` listener is now registered before spawn so error output is always visible.
* Read `phpcbf.onsave` per-document URI in `onWillSaveTextDocument` so per-folder settings work correctly in multi-root workspaces. Closes #27.
* Only reload settings when a `phpcbf.*` configuration key changes (not on every VS Code settings change).
* Set `cwd: TmpDir` when spawning phpcbf so temporary diff files can be written on all platforms.
* Use `path.join()` for temp file path construction to fix path separator on Windows. Closes #23.
* Clean up temp file on spawn error to prevent file leaks.
* Fix `console.group`/`console.time` crash when `phpcbf.debug` is enabled β€” debug output now goes to the VS Code Output panel (`View β†’ Output β†’ phpcbf`). Closes #14.
* Fix operator precedence in `phpcbf.enable` check so the setting is respected correctly.
* Prevent `findFiles` from walking above the workspace root when the file is outside the workspace.
* Improve `.vscodeignore` to reduce published extension package size.

## 0.0.9
* Fix crash on activation and configuration reload when no text editor is active (`window.activeTextEditor` is `null`). Closes #35, #43.
* Reload settings per-document on every format call, so per-folder and multi-root workspace settings are respected. Closes #36.
Expand Down