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

@@ -110,7 +110,7 @@ function compareResourceStates(a: vscode.SourceControlResourceState, b: vscode.S
return result;
}
export class ExtHostSCMInputBox {
export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
private _value: string = '';
@@ -140,6 +140,17 @@ export class ExtHostSCMInputBox {
this._placeholder = placeholder;
}
private _warningLength: number | undefined;
get warningLength(): number | undefined {
return this._warningLength;
}
set warningLength(warningLength: number) {
this._proxy.$setWarningLength(this._sourceControlHandle, warningLength);
this._warningLength = warningLength;
}
constructor(private _proxy: MainThreadSCMShape, private _sourceControlHandle: number) {
// noop
}