Set placeholder text in SourceControlInputBox

This commit is contained in:
Hui Zhou
2017-06-29 09:28:59 -07:00
parent 8b942faafb
commit e17a5f49c0
8 changed files with 46 additions and 2 deletions

View File

@@ -343,4 +343,14 @@ export class MainThreadSCM implements MainThreadSCMShape {
repository.input.value = value;
}
$setInputBoxPlaceholder(sourceControlHandle: number, placeholder: string): void {
const repository = this._repositories[sourceControlHandle];
if (!repository) {
return;
}
repository.input.placeholder = placeholder;
}
}