Merge branch 'commit-counter' of https://github.com/jayjun/vscode into jayjun-commit-counter

This commit is contained in:
Joao Moreno
2017-12-12 16:57:27 +01:00
8 changed files with 70 additions and 4 deletions

View File

@@ -410,6 +410,7 @@ export interface MainThreadSCMShape extends IDisposable {
$setInputBoxValue(sourceControlHandle: number, value: string): void;
$setInputBoxPlaceholder(sourceControlHandle: number, placeholder: string): void;
$setWarningLength(sourceControlHandle: number, warningLength: number): void;
}
export type DebugSessionUUID = string;

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
}