mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
Only show find when modal is loaded and expand the collapsed cell on find. (#8790)
This commit is contained in:
@@ -334,8 +334,10 @@ export class NotebookEditor extends BaseEditor implements IFindNotebookControlle
|
||||
this._currentMatch = range;
|
||||
}
|
||||
public toggleSearch(): void {
|
||||
// reveal only when the model is loaded
|
||||
let isRevealed: boolean = !this._findState.isRevealed && this._notebookModel ? !this._findState.isRevealed : false;
|
||||
this._findState.change({
|
||||
isRevealed: !this._findState.isRevealed
|
||||
isRevealed: isRevealed
|
||||
}, false);
|
||||
if (this._findState.isRevealed) {
|
||||
this._finder.focusFindInput();
|
||||
|
||||
Reference in New Issue
Block a user