Skip to content

Conversation

@Davidyz
Copy link
Owner

@Davidyz Davidyz commented Sep 27, 2025

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
Copy link

codecov bot commented Sep 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.89%. Comparing base (171361e) to head (db7e74c).

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 Sentry.
📢 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 Davidyz force-pushed the feat/merge-global-config branch from 02f7407 to e2667e5 Compare September 28, 2025 09:13
@Davidyz 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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants