Skip to content

Conversation

hirossan4049
Copy link

Summary

Fixes an issue where the editor.findMatchForeground and editor.findMatchHighlightForeground color settings were swapped.

Problem

The find match foreground colors were incorrectly assigned:

  • editor.findMatchForeground (documented as “current search match”) was applied to other matches.
  • editor.findMatchHighlightForeground (documented as “other search matches”) was applied to the current match.

Solution

Swapped the CSS class selectors in findWidget.ts:

  • editor.findMatchForeground now correctly targets .currentFindMatchInline (current match)
  • editor.findMatchHighlightForeground now correctly targets .findMatchInline (other matches)

Before

Before screenshot

After

After screenshot

Test Plan

  • Set editor.findMatchForeground to a distinct color and verify it colors the current match.
  • Set editor.findMatchHighlightForeground to a distinct color and verify it colors other matches.

@Copilot Copilot AI review requested due to automatic review settings October 8, 2025 15:51
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the editor.findMatchForeground and editor.findMatchHighlightForeground color settings were incorrectly swapped in the find widget implementation. The fix ensures that the documented color semantics are properly applied to their intended elements.

  • Corrected assignment of editor.findMatchForeground to target the current search match
  • Corrected assignment of editor.findMatchHighlightForeground to target other search matches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants