Skip to content

Conversation

@Hirogen
Copy link
Collaborator

@Hirogen Hirogen commented Dec 3, 2025

This pull request updates the persistence logic in the application to improve file path handling and prepares for moving the persister code to a dedicated assembly. It refactors the Persister class to require the application's startup path when saving and loading session data, ensuring correct directory usage. Additionally, it introduces a new test project for persister functionality and updates the solution file to include it.

Persistence logic improvements:

  • Refactored the Persister class methods (SavePersistenceData, LoadPersistenceData, LoadPersistenceDataOptionsOnly, and BuildPersisterFileName) to require an explicit applicationStartupPath parameter, ensuring session files are stored in the correct directory. [1] [2] [3] [4] [5]
  • Updated usages in LogWindow.cs to pass Application.StartupPath to the Persister methods, aligning with the new method signatures. [1] [2] [3]
  • Improved BuildSessionFileNameFromPath to use a StringBuilder for safer string manipulation when generating session file names.

Project structure and testing:

  • Added a new test project LogExpert.Persister.Tests with references and dependencies for unit testing the persister logic.
  • Updated the solution file LogExpert.sln to include the new test project and its build configurations. [1] [2] [3]

Code organization:

  • Added a TODO comment indicating the intention to move the Persister class to its own assembly, LogExpert.Persister, for better separation of concerns.…oject, in anticipation of moving the Persister to its own project

…oject, in anticipation of moving the Persister to its own project
BRUNER Patrick and others added 3 commits December 3, 2025 11:13
Comment on lines +40 to +43
catch
{
// Ignore cleanup errors
}
@Hirogen Hirogen merged commit 966e414 into Development Dec 3, 2025
1 check passed
@Hirogen Hirogen deleted the 505-tail-following-stops-working-after-a-while-for-logs-located-on-wsl branch December 3, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tail Following UI Stops Updating (when using Highlighting Actions, such as Plugin or Set Bookmark)

2 participants