mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix #74269
This commit is contained in:
parent
41b0d32a9a
commit
0c53423cc4
|
@ -454,14 +454,16 @@ export class QuickOpenController extends Component implements IQuickOpenService
|
|||
const previousInput = this.quickOpenWidget.getInput();
|
||||
const wasShowingHistory = previousInput && previousInput.entries && previousInput.entries.some(e => e instanceof EditorHistoryEntry || e instanceof EditorHistoryEntryGroup);
|
||||
if (wasShowingHistory || matchingHistoryEntries.length > 0) {
|
||||
if (resolvedHandler.hasShortResponseTime()) {
|
||||
await timeout(QuickOpenController.MAX_SHORT_RESPONSE_TIME);
|
||||
}
|
||||
(async () => {
|
||||
if (resolvedHandler.hasShortResponseTime()) {
|
||||
await timeout(QuickOpenController.MAX_SHORT_RESPONSE_TIME);
|
||||
}
|
||||
|
||||
if (!token.isCancellationRequested && !inputSet) {
|
||||
this.quickOpenWidget.setInput(quickOpenModel, { autoFocusFirstEntry: true });
|
||||
inputSet = true;
|
||||
}
|
||||
if (!token.isCancellationRequested && !inputSet) {
|
||||
this.quickOpenWidget.setInput(quickOpenModel, { autoFocusFirstEntry: true });
|
||||
inputSet = true;
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
||||
// Get results
|
||||
|
|
Loading…
Reference in a new issue