tm4e icon indicating copy to clipboard operation
tm4e copied to clipboard

Provide a way to refresh a grammar or theme without restarting Eclipse

Open cabintech opened this issue 1 year ago • 1 comments

It is wildly tedious to test incremental changes to grammars and themes loaded from files (e.g. not plugins). The TextMate preferences has no 'reload' option for grammar or theme files. So one approach is to delete the grammar/theme, then re-load it. But if you don't close and reopen the Preferences dialog that does not work (it is not enough to delete, "apply", and reload). Then close and reopen the generic editor to see the changes... but this works only for themes, grammars still do not update. For that you have to exist and restart Eclipse.

[Correction, with the latest release themes (very nicely) update live from the file system the next time the editor gets focus, but grammars do not.]

cabintech avatar Dec 04 '24 16:12 cabintech

FYI: For themes reload is implemented in the UI plugin like this: https://github.com/eclipse-tm4e/tm4e/blob/58fb548e456e73fa0f4c6e8156deae3bb42125ae/org.eclipse.tm4e.ui/src/main/java/org/eclipse/tm4e/ui/themes/Theme.java#L150-L183

sebthom avatar Dec 08 '24 20:12 sebthom

Addressed by #895

sebthom avatar Jun 02 '25 12:06 sebthom