-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The bgcolor of selected text in highlighted search keyword is not different from the highlight color #43928
Comments
@sandy081 do you have an idea how to do this? I think we just want to reset the "selected" row when selection moves in the editor. I thought it looked easy, but we just have an ITextModel, and I am not sure what the recommended way is to associate that model with an open editor. |
You need to have access to
If you do not want to listen to position changes, how about resetting it when Search is focused out? |
idk if this can help you fix this issue, but if I add a character on the same line before the search highlight, the selected text gets the correct highlight. |
Do you mean the latest version which isn't released yet? I'm using
and this problem seems exist |
I'm also still seeing this on the latest Insiders version.
@andreamah In your screenshot it looks like the result you're selecting text from wasn't first selected from the search results panel which is part of the repro steps.
|
Could it be a specific theme bug? |
I think I accidentally also had a highlight from the find widget also. Reopening. |
Issue Type
Bug
Description
Steps to reproduce:
I want the bgcolor of selected text differ from highlighted color, but it is the same.
(in this pic, "COUNT" is selected)
Note that this issue only occur when I open the file from search panel, and only occur on the highlight of search result I clicked.
(the second highlight works fine)
I tried 4 color themes, all reproduced this issue.
VS Code Info
VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:34:36.336Z)
OS version: Windows_NT x64 6.1.7601
System Info
Extensions (1)
The text was updated successfully, but these errors were encountered: