Skip to content

Regenerate on table save and delete files of deleted tables (1.3.4) - #22

Merged
Severnbli merged 5 commits into
mainfrom
feature/regenerate-on-save
Nov 7, 2026
Merged

Severnbli merged 5 commits into
mainfrom
feature/regenerate-on-save

Conversation

@Severnbli

Copy link
Copy Markdown
Owner

Summary

  • Regenerate on save only. Removed the Localization editor event subscriptions (key/entry/collection/locale edits) that regenerated code on every in-memory change, e.g. right after creating a key. Generation now runs when table assets are saved (Ctrl+S / File > Save Project) or change on disk, through the asset postprocessor.

  • Fixes Generated file don't deleted after table deleted #14: generated files not deleted after deleting tables. Cleanup was skipped in two cases:

    • the last collection was deleted (automatic runs kept the files on purpose, to avoid wiping them while tables import);
    • a collection lost its shared table data first, so its read failed and every deletion was blocked.

    Each run now records the collection and shared table data asset paths. When the postprocessor sees one of them (or a folder holding one) deleted, the next run treats missing collections as removed: their files are deleted, the last one included, without a prompt. Older projects get the paths recorded by the startup staleness check.

  • Version 1.3.4, CHANGELOG, README and the "Regenerate On Changes" tooltip updated.

Test plan

  • CI editor tests, including the new GenerationIntegrationTests: recorded paths, deleting the last collection, and a collection whose shared data was deleted
  • Manual: creating a key no longer regenerates until the table is saved
  • Manual: deleting a table collection's files in the Project window removes its .g.cs

🤖 Generated with Claude Code

Severnbli and others added 5 commits November 7, 2026 11:12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #14

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Severnbli
Severnbli merged commit f79f853 into main Nov 7, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated file don't deleted after table deleted

1 participant