Move index database into .dexter/ folder - #46
Merged
Conversation
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Continuation of #10. I couldn't push to @egze's PR since he made it on a fork, but I needed to add the
.gitignorechange and README updates.Summary from #10:
Note
Medium Risk
Moderate risk because it changes index location/root-detection used by both CLI and LSP and adds automatic deletion-based migration of legacy DB files, which could impact existing setups if path resolution is wrong.
Overview
Dexter now stores its index at
.dexter/dexter.dbinstead of.dexter.db, creating the.dexter/directory on open and writing a local.gitignoreso projects no longer need to ignore DB artifacts manually.Path/root resolution is centralized in
internal/storeviaDBPath/DBDir/LegacyDBPathandFindProjectRoot; the CLI and LSP switch to these helpers (with the LSP intentionally not falling back tomix.exsto keep monorepo roots anchored on.dexter/or.git).On startup,
store.Opennow auto-migrates by deleting any legacy.dexter.db+ WAL/SHM siblings and rebuilding in the new location; integration/unit tests and README/editor configs are updated accordingly.Reviewed by Cursor Bugbot for commit 1957ea7. Bugbot is set up for automated code reviews on this repo. Configure here.