We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398ef84 commit 5af64d8Copy full SHA for 5af64d8
src/features/gitMisc.ts
@@ -4,11 +4,11 @@ import { getGitActiveRepoOrThrow } from '../git-api'
4
5
export default () => {
6
registerExtensionCommand('fixedGitStageFile', async () => {
7
+ await vscode.commands.executeCommand('git.stage')
8
const repo = getGitActiveRepoOrThrow()
9
if (!repo) return
10
const currentUrl = vscode.window.activeTextEditor?.document.uri
11
if (!currentUrl) return
- await vscode.commands.executeCommand('git.stage')
12
if ([...repo.state.indexChanges, ...repo.state.workingTreeChanges, ...repo.state.mergeChanges].some(x => x.uri.fsPath === currentUrl.fsPath)) {
13
return
14
}
0 commit comments