jw3 / example-daffodil-vscode

A VS Code extension for DFDL with Daffodil
Apache License 2.0
2 stars 3 forks source link

Infoset view #66

Closed jw3 closed 3 years ago

jw3 commented 3 years ago

Adds a virtual doc view of the infoset. In addition to adding the obvious function of viewing this infoset, this work is also attempting to demonstrate an alternative way of managing the editor views by splitting the update out from the display.

commands

Diffs here are provided by keeping tabs on the previous infoset state and then using the built in vs code diff tool to run it against the current state. Pretty simple, but effective.

image

Can diff at any point with ctrl+p diff command.

There are some interesting implications of diffing things from more than one step back as well, but didnt implement a history of any sort.

jw3 commented 3 years ago

This diff-of-previous-state is similar to how the cli debugger works for the diff command.