Recaf icon indicating copy to clipboard operation
Recaf copied to clipboard

Add support for (i.e. preserve) comments in assembly code

Open Arc8ne opened this issue 9 months ago • 2 comments

Add support for (i.e. preserve) comments in assembly code

Currently, comments can be written while editing assembly code in the assembler, however, even after changes to said assembly code are saved, the comments in the assembly code are not preserved/saved.

Image

Arc8ne avatar Mar 15 '25 09:03 Arc8ne

I'd like to have the same function on decompiled code. Class file itself does not contain any comments so I guess we need to save them in workspace with something like git diff.

astro-angelfish avatar Jul 30 '25 02:07 astro-angelfish

For what its worth, we do have class, field, and method comments.

https://github.com/user-attachments/assets/2f5286da-01c9-4fe5-b92e-1ea3353aebb4

Image

We'll eventually want assembler comments to be persisted, but its a bit tricky to do so in a way that is secure and not abusable by third parties like our old comment persistence in 3.X.

Col-E avatar Jul 30 '25 10:07 Col-E