Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix(search): Token decoration in keyword-enabled query input#63543

Merged
fkling merged 1 commit intomainfrom
fkling-srch-646-repo-and-other-filters-are-syntax-highlighted-incorrectly-in
Jun 28, 2024
Merged

fix(search): Token decoration in keyword-enabled query input#63543
fkling merged 1 commit intomainfrom
fkling-srch-646-repo-and-other-filters-are-syntax-highlighted-incorrectly-in

Conversation

@fkling
Copy link
Contributor

@fkling fkling commented Jun 28, 2024

Fixes srch-646

This commit fixes how tokens are decorated in the query input. The "chip" style needs to have lower presedence than the syntax highlighting so that it doesn't get split across the individual parts of e.g. a repo filter.

This commit also removes the activeFilter extension. It was conflicting a bit with the filter decoration. This should be fine since it wasn't used for quite a while in the main search input either.

I also noticed an issue with the size of the CodeMirror input in the saved searches form. I couldn't enter any query actually because the input was too "narrow". Adding flex:1 fixes that.

Test plan

Manual testing.

2024-06-28_13-12

This commit fixes how tokens are decorated in the query input. The
"chip" style needs to have lower presedence than the syntax highlighting
so that it doesn't get split across the individual parts of e.g. a repo
filter.

This commit also removes the activeFilter extension. It was conflicting
a bit with the filter decoration. This should be fine since it wasn't
used for quite a while in the main search input either.

I also noticed an issue with the size of the CodeMirror input in the
saved searches form. I couldn't enter any query actually because the
input was too "narrow". Adding `flex:1` fixes that.
@fkling fkling requested a review from stefanhengl June 28, 2024 11:13
@fkling fkling self-assigned this Jun 28, 2024
@cla-bot cla-bot bot added the cla-signed label Jun 28, 2024
@fkling fkling merged commit 8c32333 into main Jun 28, 2024
@fkling fkling deleted the fkling-srch-646-repo-and-other-filters-are-syntax-highlighted-incorrectly-in branch June 28, 2024 12:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants