Enter any content on the Editor and then delete it. The text margin will still be displayed in yellow on that line, which is marked as changed.
In fact, the content has not changed in any way, and it does not match the expected behavior.
Enter any content on the Editor and then delete it. The text margin will still be displayed in yellow on that line, which is marked as changed.
In fact, the content has not changed in any way, and it does not match the expected behavior.
Hello,
That is the same way that Visual Studio editor behaves as well. Editors track the changed state based on where the last save was and which lines were modified, but do not do text comparisons for performance reasons.
That being said, if you type something and then undo back to the original starting point, the change margin will not show any yellow because it will recognize that all changes have been reverted.
I tried it on the VS editor, and only when the blank line is entered and then deleted, the margin will show that it has changed, because the blank line is automatically added at the indentation of the blank line when typing. If you delete the white space or try this operation on a non-blank line, the margin will not show that it has changed
Can you be more specific about the exact steps you are following? Steps I just performed in Visual Studio:
Other steps I've tried:
And with a non-empty file:
I am not clear which scenario you are describing where the line modification indicator is cleared in Visual Studio after editing the text back to the original value without using the UNDO commands. With the steps outlined above, I've seen the same behavior in both Visual Studio and SyntaxEditor. If you can tell me how to produce what you're seeing and where behavior does not meet the expected result, I'd be happy to look more closely.
Please log in to a validated account to post comments.