This commit is contained in:
Johannes Rieken 2016-08-03 12:24:12 +02:00
parent 216bba8e41
commit 7ba701bbe0

View file

@ -131,7 +131,7 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
let currentPick = defaultMessage;
let currentValidation = TPromise.as(true);
let currentDecoration: Severity;
let lastValue = options.value || '';
let lastValue: string;
const init = (resolve: (value: IPickOpenEntry | TPromise<IPickOpenEntry>) => any, reject: (value: any) => any) => {
@ -142,8 +142,8 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
autoFocus: { autoFocusFirstEntry: true },
password: options.password,
placeHolder: options.placeHolder,
value: lastValue || options.value,
valueSelect: !lastValue || lastValue === options.value,
value: lastValue === void 0 ? options.value : lastValue,
valueSelect: lastValue === void 0,
inputDecoration: currentDecoration,
onDidType: (value) => {
lastValue = value;