eclipse-cdt-cloud / vscode-memory-inspector

vscode memory inspector
https://open-vsx.org/extension/eclipse-cdt/memory-inspector
Eclipse Public License 2.0
6 stars 10 forks source link

Memory Table Editability #110

Open colin-grant-work opened 7 months ago

colin-grant-work commented 7 months ago

What it does

An alternative implementation of #108 that allows both editing by group (by double clicking on the group) and editing of sub- and supra-group editing by selection and context menu.

How to test

As in #108:

  1. Double click on a data group within the table
  2. Provide a different value
  3. submit with enter or blur the element
  4. Changes should be applied

In addition:

  1. Select text in a data column row.
  2. Use the context menu and select Edit currently selected memory
  3. All words whose text was included in the selection will be converted into a text input.

image

image

image

Review checklist

Reminder for reviewers

jreineckearm commented 7 months ago

Thanks, @colin-grant-work ! I see that this PR builds on top of #108 . I'll have a play with it tomorrow. Could make sense to merge #108 first and then rebase/update this one here. Would this here address any open feedback on the other one?

jreineckearm commented 7 months ago

Actually did a little testing now.... :-) I like this approach as well. But we need to review how this handles endianess. I see unexpected effects with a Little Endian configuration. So, we probably want to focus on #108 first. Then take a proper look at the endianess handling here.

colin-grant-work commented 7 months ago

Yes, because this allows editing that spans groups, which is the unit at which we apply endianness currently, it could end up behaving a bit strangely there.

Would this here address any open feedback on the other one?

This one addresses the early separation of data and UI, so basically the feedback on the data-column.tsx. What remains for @haydar-metin to do is primarily the cleaner handling of the event emission after write (the comments on memory-provider.ts).

colin-grant-work commented 7 months ago

Setting as draft for now pending reconciliation with recently merged code.