未验证 提交 9ff783bd 编写于 作者: J João Moreno 提交者: GitHub

Update extensions/git/src/commands.ts

上级 c8bf9160
......@@ -980,10 +980,10 @@ export class CommandCenter {
return;
}
await this._stageChanges(textEditor, [changes[index]]).then(() => {
const firstStagedLine = changes[index].modifiedStartLineNumber - 1;
textEditor.selections = [new Selection(firstStagedLine, 0, firstStagedLine, 0)];
});
await this._stageChanges(textEditor, [changes[index]]);
const firstStagedLine = changes[index].modifiedStartLineNumber - 1;
textEditor.selections = [new Selection(firstStagedLine, 0, firstStagedLine, 0)];
}
@command('git.stageSelectedRanges', { diff: true })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册