提交 9bd5d260 编写于 作者: I isidor

git: remove smartness around stage selected lines enablement

fixes #2839
上级 ead5dfaa
......@@ -272,15 +272,9 @@ export class StageRangesAction extends baseeditor.EditorInputAction {
if (!this.gitService || !this.editorService) {
return false;
}
var changes = this.editor.getLineChanges();
var selections = this.editor.getSelections();
if (!changes || !selections || selections.length === 0) {
return false;
}
return stageranges.getSelectedChanges(changes, selections).length > 0;
const selection = this.editor.getSelection();
return selection && !selection.isEmpty();
}
public run():TPromise<any> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册