From bf333ef7324d828c82f9a18540133ed5fe65679b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 2 Apr 2026 19:02:44 +0000 Subject: [PATCH] docs: draft CHANGELOG entry for v0.0.10 release preparation Summarises all bug fixes that are ready to ship, drawn from the open Repo Assist PRs (primarily #106, #114, #117, #120, #124 and the earlier consolidated fixes). The version number in package.json is intentionally not changed here (that file requires maintainer action due to protected-file restrictions). This PR exists so the maintainer can review the intended release notes and bump the version when ready. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71da370..f53bd9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.