mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
parent
d1ae1fff18
commit
3370908fd1
|
@ -67,20 +67,8 @@ export class SearchFindInput extends ContextScopedFindInput {
|
||||||
!this.filters.codeInput ||
|
!this.filters.codeInput ||
|
||||||
!this.filters.codeOutput;
|
!this.filters.codeOutput;
|
||||||
|
|
||||||
// for now, allow the default state to enable regex, since it would be strange for regex to suddenly
|
// TODO: find a way to express that searching notebook output and markdown preview don't support regex.
|
||||||
// be disabled when a notebook is opened. However, since regex isn't supported for outputs, this should
|
|
||||||
// be revisted.
|
|
||||||
if (this.regex) {
|
|
||||||
if ((this.filters.markupPreview || this.filters.codeOutput) && this._filterChecked && this._visible) {
|
|
||||||
this.regex.disable();
|
|
||||||
this.regex.domNode.tabIndex = -1;
|
|
||||||
this.regex.domNode.classList.toggle('disabled', true);
|
|
||||||
} else {
|
|
||||||
this.regex.enable();
|
|
||||||
this.regex.domNode.tabIndex = 0;
|
|
||||||
this.regex.domNode.classList.toggle('disabled', false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this._findFilter.applyStyles(this._filterChecked);
|
this._findFilter.applyStyles(this._filterChecked);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -792,7 +792,11 @@ export class FileMatch extends Disposable implements IFileMatch {
|
||||||
webviewMatches: webviewMatches
|
webviewMatches: webviewMatches
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
this._findMatchDecorationModel.setAllFindMatchesDecorations(cellFindMatch);
|
try {
|
||||||
|
this._findMatchDecorationModel.setAllFindMatchesDecorations(cellFindMatch);
|
||||||
|
} catch (e) {
|
||||||
|
// no op, might happen due to bugs related to cell output regex search
|
||||||
|
}
|
||||||
}
|
}
|
||||||
async updateMatchesForEditorWidget(): Promise<void> {
|
async updateMatchesForEditorWidget(): Promise<void> {
|
||||||
if (!this._notebookEditorWidget) {
|
if (!this._notebookEditorWidget) {
|
||||||
|
|
Loading…
Reference in a new issue