input box length warnings

introduces scm.inputCounter
This commit is contained in:
Joao Moreno
2017-12-12 17:54:28 +01:00
parent 7b4bb1ed2b
commit 946d872acb
9 changed files with 58 additions and 31 deletions

View File

@@ -140,15 +140,15 @@ export class ExtHostSCMInputBox implements vscode.SourceControlInputBox {
this._placeholder = placeholder;
}
private _warningLength: number | undefined;
private _lineWarningLength: number | undefined;
get warningLength(): number | undefined {
return this._warningLength;
get lineWarningLength(): number | undefined {
return this._lineWarningLength;
}
set warningLength(warningLength: number) {
this._proxy.$setWarningLength(this._sourceControlHandle, warningLength);
this._warningLength = warningLength;
set lineWarningLength(lineWarningLength: number) {
this._proxy.$setLineWarningLength(this._sourceControlHandle, lineWarningLength);
this._lineWarningLength = lineWarningLength;
}
constructor(private _proxy: MainThreadSCMShape, private _sourceControlHandle: number) {