提交 2b06dd1c 编写于 作者: C Christof Marti

Revert #61831 (fixes #62131)

This reverts commit 3f7e8b4d.
上级 d80915b0
......@@ -339,9 +339,6 @@ export class QuickOpenController extends Component implements IQuickOpenService
private onType(value: string): void {
// Remove leading and trailing whitespace
value = strings.trim(value);
// cancel any pending get results invocation and create new
this.cancelPendingGetResultsInvocation();
const pendingResultsInvocationTokenSource = new CancellationTokenSource();
......@@ -366,8 +363,11 @@ export class QuickOpenController extends Component implements IQuickOpenService
// Update context
this.setQuickOpenContextKey(contextKey);
// Remove leading and trailing whitespace
const trimmedValue = strings.trim(value);
// If no value provided, default to editor history
if (!value) {
if (!trimmedValue) {
// Trigger onOpen
this.resolveHandler(handlerDescriptor || defaultHandlerDescriptor);
......@@ -393,7 +393,7 @@ export class QuickOpenController extends Component implements IQuickOpenService
else {
this.isQuickOpen = true;
// Cache the value for prefilling the quickOpen next time is opened
this.lastInputValue = value;
this.lastInputValue = trimmedValue;
resultPromise = this.handleDefaultHandler(defaultHandlerDescriptor, value, pendingResultsInvocationToken);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册