Add warningLength to SourceControlInputBox

This commit is contained in:
Tan Jay Jun
2017-11-11 21:09:54 +08:00
parent 37f4030344
commit c407635fdf
8 changed files with 67 additions and 15 deletions

View File

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