Skip to content

Commit

Permalink
disable the WPF ComboBox Search behavior in Rename popup (#77312)
Browse files Browse the repository at this point in the history
In Copilot Rename UI, user's input is overridden with different case if
there is a match with rename suggestions

Notice: I'm typing lowercase `test`, but it's replaced with uppercase.
![smart rename combobox search
before](https://github.com/user-attachments/assets/c6523908-9978-4cdd-9084-01d2d687932c)

We can avoid this by setting `ComboBox.IsTextSearchEnabled=False` on the
`SmartRenameUserInputComboBox`. Now, WPF will stop overriding user's
input if there is a match.

![smart rename combobox search
after](https://github.com/user-attachments/assets/ec061829-88b5-457e-9e6e-9f1061ebc783)
  • Loading branch information
JoeRobich authored Feb 21, 2025
2 parents a0da860 + 9064a3d commit bfe9d9f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
ItemsSource="{Binding SuggestedNames}"
StaysOpenOnEdit="True"
IsEditable="True"
IsTextSearchEnabled="False"
Style="{StaticResource {x:Static vsfx:VsResourceKeys.ComboBoxStyleKey}}"
GotKeyboardFocus="ComboBox_GotKeyboardFocus"
VirtualizingStackPanel.IsVirtualizing="True"
Expand Down

0 comments on commit bfe9d9f

Please sign in to comment.