Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/vs/base/browser/ui/findinput/findInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface IFindInputOptions {
readonly inputBoxStyles: IInputBoxStyles;
readonly history?: IHistory<string>;
readonly hoverLifecycleOptions?: IHoverLifecycleOptions;
readonly hideHoverOnValueChange?: boolean;
}

const NLS_DEFAULT_LABEL = nls.localize('defaultLabel', "input");
Expand Down Expand Up @@ -118,7 +119,8 @@ export class FindInput extends Widget {
inputBoxStyles: options.inputBoxStyles,
history: options.history,
actions: options.actions,
actionViewItemProvider: options.actionViewItemProvider
actionViewItemProvider: options.actionViewItemProvider,
hideHoverOnValueChange: options.hideHoverOnValueChange
}));

if (this.showCommonFindToggles) {
Expand Down
5 changes: 5 additions & 0 deletions src/vs/base/browser/ui/inputbox/inputBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface IInputOptions {
readonly actionViewItemProvider?: IActionViewItemProvider;
readonly inputBoxStyles: IInputBoxStyles;
readonly history?: IHistory<string>;
readonly hideHoverOnValueChange?: boolean;
}

export interface IInputBoxStyles {
Expand Down Expand Up @@ -569,6 +570,10 @@ export class InputBox extends Widget {
if (this.state === 'open' && this.contextViewProvider) {
this.contextViewProvider.layout();
}

if (this.options.hideHoverOnValueChange) {
getBaseLayerHoverDelegate().hideHover();
}
}

private updateMirror(): void {
Expand Down
3 changes: 2 additions & 1 deletion src/vs/platform/quickinput/browser/quickInputBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export class QuickInputBox extends Disposable {
label: '',
inputBoxStyles,
toggleStyles,
actionViewItemProvider: createToggleActionViewItemProvider(toggleStyles)
actionViewItemProvider: createToggleActionViewItemProvider(toggleStyles),
hideHoverOnValueChange: true
}));
const input = this.findInput.inputBox.inputElement;
input.role = 'textbox';
Expand Down
Loading