Skip to content

Commit 8e4aae8

Browse files
authored
Fix microsoft#180857. Empty cmd+f should not unset search keyword. (microsoft#180901)
1 parent 2c51b3d commit 8e4aae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class NotebookFindWidget extends SimpleFindReplaceWidget implements INotebookEdi
236236
override async show(initialInput?: string, options?: IShowNotebookFindWidgetOptions): Promise<void> {
237237
const searchStringUpdate = this._state.searchString !== initialInput;
238238
super.show(initialInput, options);
239-
this._state.change({ searchString: initialInput ?? '', isRevealed: true }, false);
239+
this._state.change({ searchString: initialInput ?? this._state.searchString, isRevealed: true }, false);
240240

241241
if (typeof options?.matchIndex === 'number') {
242242
if (!this._findModel.findMatches.length) {

0 commit comments

Comments
 (0)