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 50bb1f1 commit 61decedCopy full SHA for 61deced
extensions/git/src/commands.ts
@@ -1792,6 +1792,8 @@ export class CommandCenter {
1792
1793
@command('git.stageFile')
1794
async stageFile(uri: Uri): Promise<void> {
1795
+ uri = uri ?? window.activeTextEditor?.document.uri;
1796
+
1797
if (!uri) {
1798
return;
1799
}
@@ -2103,6 +2105,8 @@ export class CommandCenter {
2103
2105
2104
2106
@command('git.unstageFile')
2107
async unstageFile(uri: Uri): Promise<void> {
2108
2109
2110
2111
2112
0 commit comments