Allow scc providers hide commit input box.

Fix for #51808.
This commit is contained in:
Ilya Biryukov
2018-10-05 14:53:25 -07:00
parent 1bf1bc2c0e
commit 212aade6db
6 changed files with 70 additions and 44 deletions

View File

@@ -440,6 +440,17 @@ class ExtHostSourceControl implements vscode.SourceControl {
return this._selected;
}
private _hideInputBox: boolean = false;
get hideInputBox(): boolean {
return this._hideInputBox;
}
set hideInputBox(hideInputBox: boolean | undefined) {
this._hideInputBox = hideInputBox;
this._proxy.$updateSourceControl(this.handle, { hideInputBox: !!hideInputBox });
}
private _onDidChangeSelection = new Emitter<boolean>();
readonly onDidChangeSelection = this._onDidChangeSelection.event;