Skip to content

Navigation Menu

Sign in
Sign up

Merge global config with project config - #294

Open
Davidyz wants to merge 3 commits into
main from
feat/merge-global-config
Open

Merge global config with project config #294
Davidyz wants to merge 3 commits into
main from
feat/merge-global-config

Conversation

@Davidyz

@Davidyz Davidyz commented Sep 27, 2025

Copy link
Copy Markdown
Owner

It makes more sense for some config options (like database settings, embedding functions, etc.) to be globally effective. This PR makes it possible. VectorCode CLI/LSP/MCP will now:

  1. check for global config at ~/.config/vectorcode/config.json (or json5). If exists, load it.
  2. check for project-local config at project_root/.vectorcode/config.json (or json5). If exists, load it and merge it with the global config (local config takes higher precedence).

You can now configure your database, embedding functions, etc., only once in the global config, and they'll be effective even if you have a local config, as long as they don't declare different settings for db/embeddings, etc.

codecov Bot commented Sep 27, 2025
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.89%. Comparing base (171361e) to head (db7e74c).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@
## main #294 +/- ##
==========================================
+ Coverage 99.72% 99.89% +0.16% 
==========================================
 Files 25 25 
 Lines 1845 1845 
==========================================
+ Hits 1840 1843 +3 
+ Misses 5 2 -3 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Davidyz force-pushed the feat/merge-global-config branch from 02f7407 to e2667e5 Compare September 28, 2025 09:13
Davidyz force-pushed the feat/merge-global-config branch from 07f986c to db7e74c Compare November 13, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /