Skip to content

Confusing highlighting of matches #33621

Closed

Description

@user3323
  • VSCode Version: 1.15.1
  • OS Version: win7x64

GIF:
confusing highlighting of matches

I understand why it acts like that.
But I think it's visually confusing.
I think there is a need to remove "this." word where you select some letters, from matching highlighting.

Activity

  1. added
    editor-core
    on Aug 31, 2017
  2. alexdima commented on Sep 1, 2017

    @alexdima
    Member

    user3323 I think this is perhaps specific to the theme you are using? And that the theme does not use transparency for decorations colors? What theme are you using? Does this reproduce in our default vs dark theme ?

  3. added
    info-needed
    on Sep 1, 2017
  4. rcjsuen commented on Sep 1, 2017

    @rcjsuen
    Contributor

    alexandrudima I see this with the "Dark+ (default dark)" theme on Windows 10.

  5. alexdima commented on Sep 1, 2017

    @alexdima
    Member

    I can reproduce some aspects of your issue, but on my machine it doesn't seem to be that confusing.

    As the selection goes from selecting zzz to zzzz, etc. those strings get searched for and then highlighted again in multiples of the number of selected characters:

    • the blue is the selection
    • the grey is the selection highlights (occurences of the selection)
    • the light blue is where the selection goes on top of the selection highlights

    I agree this is ugly. Perhaps we can eliminate all the selection highlights that would intersect with the selection.

    I was asking for the theme because on my machine the colors are a bit different, or perhaps I'm dragging differently than you? (or perhaps you have some color customizations in your user settings?)

    kapture 2017-09-01 at 11 43 45

  6. user3323 commented on Sep 1, 2017

    @user3323
    Author

    alexandrudima, yeah, I have this crazy blue rectangle because of this:

    "workbench.colorCustomizations": {
    
      "editor.selectionHighlightBackground": "#004d99",
    
    },
    

    Anyway, I think it would be good if you can make highest priority to user's selection (higher z-index or what do you have there), so matching letters wouldn't destroy this.

  7. added
    bug
    and removed
    info-needed
    on Sep 1, 2017
  8. added
    editor-rendering
    and removed
    editor-core
    on Apr 19, 2018
  9. added a commit that references this issue on May 7, 2018
    8f0d370
  10. added a commit that references this issue on May 7, 2018
    49a33dd
  11. locked and limited conversation to collaborators on Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugeditor-renderingverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions