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

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

View File

@@ -43,6 +43,17 @@ export class ExtHostSCMInputBox {
return this._onDidChange.event;
}
private _placeholder: string = '';
get placeholder(): string {
return this._placeholder;
}
set placeholder(placeholder: string) {
this._proxy.$setInputBoxPlaceholder(this._sourceControlHandle, placeholder);
this._placeholder = placeholder;
}
constructor(private _proxy: MainThreadSCMShape, private _sourceControlHandle: number) {
// noop
}