public IEditorSession Deserialize(IEnumerable <string> lines, IEditorSessionStub stub)
        {
            using var iterator = lines.GetEnumerator();

            StringBuilder sql = new();
            ISolutionItem?currentSolutionItem = null;
            var           currentSession      = new EditorSession(stub.Name, stub.FileName, stub.Created, stub.LastModified);

            while (iterator.MoveNext())
            {
                var line = iterator.Current;
                if (line.StartsWith(Begin))
                {
                    var match = BeginRegex.Match(line);
                    if (match.Success)
                    {
                        if (currentSolutionItem == null)
                        {
                            var comment      = iterator.MoveNext() ? iterator.Current[4..] : "";
 public HistoryActionForgetCurrent(ISessionService sessionService, IEditorSessionStub stub)
 {
     this.sessionService = sessionService;
     this.stub           = stub;
 }