fix(vscode): Use git repository root instead of workspace folder for …#467
Merged
svarlamov merged 8 commits intogit-ai-project:mainfrom Feb 9, 2026
Merged
fix(vscode): Use git repository root instead of workspace folder for …#467svarlamov merged 8 commits intogit-ai-project:mainfrom
svarlamov merged 8 commits intogit-ai-project:mainfrom
Conversation
…git-ai commands Fixed an issue where the VSCode extension failed to detect git notes when VS Code was opened with a workspace root that is not a git repository (e.g., a multi-folder workspace containing multiple git repositories). Changes: - Added getGitRepoRoot() method in blame-service.ts to find the actual git repository root using VS Code's Git extension API - Updated executeBlame() to prioritize git repo root over workspace folder - Added getGitRepoRoot() method in ai-edit-manager.ts with the same logic - Updated checkpoint() method to use git repo root for command execution This ensures git-ai blame and checkpoint commands are executed in the correct git repository root, even when VS Code is opened with a workspace that is not a git repository. Fixes: Git blame information not displayed in workspace mode Fixes: Checkpoint commands failing with "not a git repository" error Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
…git-ai commands
Fixed an issue where the VSCode extension failed to detect git notes when VS Code was opened with a workspace root that is not a git repository (e.g., a multi-folder workspace containing multiple git repositories).
Changes:
Fixes #441
This ensures git-ai blame and checkpoint commands are executed in the correct git repository root, even when VS Code is opened with a workspace that is not a git repository.
Fixes: Git blame information not displayed in workspace mode
Fixes: Checkpoint commands failing with "not a git repository" error