Skip to content

Commit 208ef18

Browse files
author
Benjamin Pasero
committed
quick access - more tweaks on value set
1 parent 25f98e0 commit 208ef18

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/vs/platform/quickinput/browser/quickAccess.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ export class QuickAccessController extends Disposable implements IQuickAccessCon
7575
if (descriptor && this.visibleQuickAccess?.descriptor === descriptor) {
7676
const picker = this.visibleQuickAccess.picker;
7777

78-
picker.value = value;
78+
if (value !== descriptor.prefix && !options?.preserveFilterValue) {
79+
// take over the value only if it is not matching
80+
// the existing provider prefix or we are to preserve
81+
picker.value = value;
82+
}
83+
7984
this.adjustValueSelection(picker, descriptor, options);
8085

8186
return;

0 commit comments

Comments
 (0)