提交 00020e63 编写于 作者: J Joao Moreno

scm: commit from input box

上级 cfbc4f67
......@@ -387,7 +387,7 @@ export class Repository implements Disposable {
const label = `Git - ${path.basename(repository.root)}`;
this._sourceControl = scm.createSourceControl('git', label);
this._sourceControl.acceptInputCommand = { command: 'git.commitWithInput', title: localize('commit', "Commit") };
this._sourceControl.acceptInputCommand = { command: 'git.commitWithInput', title: localize('commit', "Commit"), arguments: [this._sourceControl] };
this._sourceControl.quickDiffProvider = this;
this.disposables.push(this._sourceControl);
......
......@@ -299,7 +299,6 @@ class SourceControlView extends CollapsibleView {
.filter(e => e.equals(KeyMod.CtrlCmd | KeyCode.Enter) || e.equals(KeyMod.CtrlCmd | KeyCode.KEY_S))
.on(this.onDidAcceptInput, this, this.disposables);
if (this.repository.provider.onDidChangeCommitTemplate) {
this.repository.provider.onDidChangeCommitTemplate(this.updateInputBox, this, this.disposables);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册