Skip to content

v0.5.0-alpha

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Nov 17:52
· 27 commits to main since this release

What's new in 0.5.0-alpha

  • Saved window layouts: View ▸ Window Layouts… (also in Search Everywhere) lists named arrangements of the tool windows, stored in layouts.json beside layout.json, so the stripes' docks, the open panels and the panel sizes can be swapped between, say, an editing setup and a debugging one. The dialog applies an entry with ↵ or Apply, deletes one from its row, and saves the current arrangement under the typed name — an empty name updates the selected entry, names match case-insensitively and the list stays sorted; every row shows which panel sits on which edge plus the three sizes. Applying adopts the saved layout, keeps the panels that need a running session (terminal, AI, Git log, database, Laravel) closed exactly as on startup, and persists the result as the current arrangement, with the outcome reported in the Output panel. Added unit tests for the store and for the summary line.
  • Prepare 0.5.0-alpha: the version is bumped in Cargo.toml and in both site pages, and the handoff notes in AGENTS.md record what this wave added (three-way merge window, JS/TS module resolution with import rewriting, Move Class with its companions, Import Class, session restore with scroll and folds, external-change prompts, the Russian UI) while the remaining-gaps list keeps only what is still open.
  • Session restore now puts every reopened file back the way it was left: the first visible visual row and the collapsed folds are saved per file in .phpcraft/session.json (rows instead of pixels, so another window size or font size still lands in place), with the folds replayed through the syntax folding candidates and skipped where the text has changed. Fold saving reads the buffer without expanding anything, so closing a window never loses folded code. Tool-window layout and window geometry were already persisted (.phpcraft/layout.json, window_state), and the split panes are equal-width by design, so no ratio is stored.
  • External file changes now ask before they touch an editor buffer: a file rewritten by git, Artisan or another editor while the buffer has unsaved edits shows a "File Changed on Disk" question (Reload or keep the edits), a file deleted from disk asks whether to close its tab, and clean buffers keep reloading silently as before. The poll runs in the window itself (it now updates through the window handle), so the questions can be asked from the background task one at a time and cancelled with Esc, and crates/app/src/dialogs/confirm.rs adds a generic ConfirmPrompt whose id travels back with the answer as DialogEvent::Confirmed.
  • Move Class (F6) now carries the declarations that belong to the class with it: a trait, interface or enum declared in the same file that the moved class uses — and that no other declaration of that file refers to — moves into the new PSR-4 file too, so a class does not arrive in its new namespace with a dangling use pointing back at the old one. References to those companions are rewritten in every file just like the class's own, each declaration is removed from the old file, and the Output panel now reports the moved FQNs plus the list of files that were updated, which Local History holds as "Before Move Class". Added php_analysis::companions with tests for the shared-trait case that must stay behind.
  • JS/TS module resolution now follows the project's own settings: a new js_analysis::Resolve reads compilerOptions.baseUrl and paths from tsconfig.json / jsconfig.json (JSONC-tolerant), the resolve.alias of a Vite config in both the object and the find/replacement array form, and keeps the Laravel @/ / ~/ convention as the fallback, so go to declaration, usages and completion work with @app/*-style aliases instead of only resources/js. Renaming a JS or TS file now rewrites every import and re-export that pointed at it, written the way each specifier already was — an alias stays an alias, a relative path stays relative, .vue keeps its extension — through open editors or on disk. Added a TSX round-trip test so JSX tags resolve to their imported component.
  • Three-way merge window: the merge dialog now rebuilds the conflicted file with ||||||| ancestor sections from the index stages (git show :1:path), so a BASE pane sits between LOCAL and RESULT whenever the common ancestor is known, and the three panes are syntax-highlighted from the whole file instead of being plain text. Non-overlapping edits inside one conflict block are merged line by line on open and through the Auto-merge button (A), which leaves only genuinely overlapping lines for a decision; each conflict now stores the text it resolves to, so Both/Both-reversed, auto-merged and cleared (U) decisions all paint the same result pane. Added j/k/n/p walking, a remembered A/U shortcut line, and git::merge3 + git::auto_merge + resolve_all_texts with unit tests.
  • Localize the dialogs and the project window into Russian: the shared dialog button in dialogs.rs now renders its label through i18n::tr, so every dialog gets translated buttons without touching call sites, and TextField placeholders, section headers, status lines, tooltips and hints across input, git_prompt, shelf, git_lists, rebase, run, projects, datasource, find_files, pull_requests, merge, prefs, git, navigate and make dialogs go through tr/trf. The same sweep covers the welcome screen, the update and What's New windows, the find bar, the services, tests, git compare, problems and other tool windows. ru.json grows to about 600 keys, with the numbers phrased the Russian way ("файлов: {}", "пройдено: …") instead of a literal word order.
  • Remove third-party branding: comments, docs, the site and the About window no longer name another IDE, the settings importer keeps only VS Code and Zed as sources, the bundled dark theme is renamed PhpCraft Midnight (old settings.json values migrate through theme::set), the default editor font is Menlo, and the README/site disclaimers become a neutral independent-project line; the bundled phpstorm-stubs package keeps its name only in STUBS-LICENSE, script/update-stubs.sh, the stub loader and the attribute filter that the stub data requires, as Apache-2.0 attribution
  • Feature wave after 0.4.3: PHP import handling (Import Class… adds a use line or qualifies a colliding reference, copy/paste carries the copied code's use statements into the target file, Optimize Imports shares the sorted block insertion), Move Class (F6) resolves the PSR-4 path from composer.json and rewrites references, a new js-analysis crate indexes ES modules, @/ aliases and the <script> blocks of Vue/Svelte components for goto, usages, rename and completion, merge conflicts open in a three-pane window with per-conflict Use Local / Use Remote / Both (remote first) and Apply & Close, the editor reloads clean buffers changed on disk (stamps polled every two seconds while the window is active, the index rebuilt after a burst), restores tabs, split panes, pins and carets from .phpcraft/session.json, zooms its font with ⌘+ / ⌘− / ⇧⌘0 and ⌘+scroll, paints inspection marks on a draggable scrollbar, and the shell is translated into Russian (264 strings in assets/locales/ru.json behind tr(), covering the menu bar, tool windows, Search Everywhere, the Navigate dialog and the editor context menu, with a language picker in Settings ▸ Appearance)

Made with ❤️ in Azerbaijan · https://path.az