When using CodeMirror, search patterns have literal highlighting and hovers on page load
Created by: lguychard
- Sourcegraph version: Cloud
- Platform information: Safari 15.4
"editor": "codemirror6"
)
Steps to reproduce:
- Navigate to this link
- Witness the query's patternType is
regex
, and the regex toggle state is correct. - Witness the pattern,
@bazel_tools.*javac
, has literal syntax highlighting and hovers
- Toggle regex off, then on again.
- Witness the pattern now has correct highlighting + hovers.
Expected behavior:
Pattern is correctly highlighted as regex on page load.
Actual behavior:
Pattern is incorrectly highlighted on page load when using "editor": "codemirror6"