diff options
Diffstat (limited to 'src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.ts')
-rw-r--r-- | src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.ts b/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.ts index f4ab978a823..f14ee0b70e2 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.ts @@ -26,7 +26,8 @@ export class NotebookFindFilters extends Disposable { set markupInput(value: boolean) { if (this._markupInput !== value) { this._markupInput = value; - this._onDidChange.fire({ markupInput: value }); + this._markupPreview = !value; + this._onDidChange.fire({ markupInput: value, markupPreview: this._markupPreview }); } } @@ -39,7 +40,8 @@ export class NotebookFindFilters extends Disposable { set markupPreview(value: boolean) { if (this._markupPreview !== value) { this._markupPreview = value; - this._onDidChange.fire({ markupPreview: value }); + this._markupInput = !value; + this._onDidChange.fire({ markupPreview: value, markupInput: this._markupInput }); } } private _codeInput: boolean = true; |