#6889 [Bug/CodeSnippet] Undo auto complete changes inside codesippet if the editor close without saving

Actifsource code generator for any programming language
If the auto complete feature was activated for a code snippet, the change must no longer exist after an automatic replace and close of the editor without saving.

Ticket: #6841 [Story/CodeSnippet] Auto complete inside codesnippet