This commit is contained in:
Johannes Rieken
2016-01-13 15:51:26 +01:00
parent 491fc08ea2
commit 38e68de39b
3 changed files with 29 additions and 1 deletions

View File

@@ -161,6 +161,24 @@ export class MainThreadQuickOpen {
}
$input(options?: InputBoxOptions): Thenable<string> {
return this._quickOpenService.input(options);
let defaultItem = 'Insert text and press Enter or Escape';
let userValue: string;
return new TPromise((resolve, reject) => {
this._quickOpenService.pick([defaultItem], {
placeHolder: options.placeHolder,
autoFocus: true,
onDidType(value) {
userValue = value;
// console.log('TEXT')
}
}).then(item => {
resolve(item && userValue);
}, reject);
});
// return this._quickOpenService.input(options);
}
}