public void UnregisterSourceFile(TextEditor.TextEditor editor, ISourceFile file)
{
var association = GetAssociatedData(file);
editor.RemoveHandler(InputElement.KeyUpEvent, association.KeyUpHandler);
editor.TextInput -= association.TextInputHandler;
association.TranslationUnit?.Dispose();
dataAssociations.Remove(file);
}