Open tsievert opened 3 months ago
The replacement logic is a bit finicky, and I'm not a master of Regular expressions, unfortunately. I will keep this ticket open because improvements would be very valuable to make this plugin more versatile.
The first example fails because, for now, the plugin expects the line containing a query to start with <!-- QueryToSerialize: ...
The second one is harder to explain. When the plugin processes a file, it first looks for all the queries it can find. Then, it removes existing query outputs, then it serializes the queries and adds the outputs. I suppose that something goes wrong during the removal phase
I was testing how this works with my workflow and noticed inconsistent behaviors with callouts.
Here the code without trying to serialize it:
Now with serialization that does not get recognized:
Then I tried it outside of the callout, and suddenly the part inside the callout gets recognized:
It messes up the callout, but somehow it suddenly kinda works.