Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.ts6
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;