monaco-react icon indicating copy to clipboard operation
monaco-react copied to clipboard

Question about comparing yaml outputs

Open mussa572 opened this issue 2 years ago • 0 comments

We are using your diff editor to compare the Helm chart YAML values. The original Helm chart YAML contains comments along with its YAML values. On the other hand, the deployed YAML output does not have any comments, but the keys in this output are from the original YAML file.

Currently, when we compare using the default method, we encounter a lot of differences, even if there was only a single-line change in the deployed output. This happens because both YAML values are not on the same lines, causing the editor to detect many changes.

Is there a way to align the line numbers of the keys in the deployed output with the line numbers from the original YAML output before we perform the comparison between the two outputs? This would help us get a more accurate comparison result.

Thank you for your assistance.

mussa572 avatar Jul 21 '23 11:07 mussa572