Skip to content

Finishes client config refactor refactor and increases test coverage - #190

Merged
ChrisJBurns merged 5 commits into
mainfrom
cleanup-config-file-code
Apr 15, 2025
Merged

Finishes client config refactor refactor and increases test coverage#190
ChrisJBurns merged 5 commits into
mainfrom
cleanup-config-file-code

Conversation

@ChrisJBurns

@ChrisJBurns ChrisJBurns commented Apr 15, 2025

Copy link
Copy Markdown
Collaborator

We finish off the Client config refactor by:

  • Separate the editor from the config file metadata operations. This allows us to keep operations decoupled and to avoid bleeding logic into the wrong layers.
  • Adding dedicated functions for reading metadata from config file and validating the config file
  • removes need for path editor
  • We also add missing tests for the FindClientConfigs method that greatly increases our test coverage as well as adding tests for the config package that was responsible for handling the ToolHive config file where there were none before.

Resolves: #117

Here we separate the editor from the config file metadata operations.
this allows us to keep operaions decoupled and to avoid bleeding logic
into the wrong layers. we also add missing tests for the FindClientConfigs
method that greatly increases our test coverage as well as adding tests
for the ToolHive config file package where there were none before.

Signed-off-by: ChrisJBurns <29541485+ChrisJBurns@users.noreply.github.com>
@ChrisJBurns ChrisJBurns changed the title minor refactor and adds missing tests Finishes client config refactor refactor and increases test coverage Apr 15, 2025
@ChrisJBurns
ChrisJBurns requested a review from JAORMX April 15, 2025 14:36
@ChrisJBurns
ChrisJBurns merged commit 5a90150 into main Apr 15, 2025
@ChrisJBurns
ChrisJBurns deleted the cleanup-config-file-code branch April 15, 2025 15:13
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.

Use of Different JSON Library for Unmarshalling JSON for VS Code Settings

2 participants