Adds new proposed api for scm input validation

This commit is contained in:
Eric Amodio
2021-04-08 19:24:53 -04:00
parent 852375649c
commit 3622dafdc0
7 changed files with 94 additions and 7 deletions

View File

@@ -259,6 +259,18 @@ export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
// noop
}
focus(): void {
if (!this._visible) {
this.visible = true;
}
this._proxy.$setInputBoxFocus(this._sourceControlHandle);
}
showValidationMessage(message: string, type: vscode.SourceControlInputBoxValidationType) {
this._proxy.$showValidationMessage(this._sourceControlHandle, message, type as any);
}
$onInputBoxValueChange(value: string): void {
this.updateValue(value);
}