mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-04 18:31:36 -07:00
fix: make @file suggestions case-insensitive (#11394)
This commit is contained in:
@@ -145,9 +145,9 @@ export function useAtCompletion(props: UseAtCompletionProps): void {
|
||||
} else if (
|
||||
(state.status === AtCompletionStatus.READY ||
|
||||
state.status === AtCompletionStatus.SEARCHING) &&
|
||||
pattern !== state.pattern // Only search if the pattern has changed
|
||||
pattern.toLowerCase() !== state.pattern // Only search if the pattern has changed
|
||||
) {
|
||||
dispatch({ type: 'SEARCH', payload: pattern });
|
||||
dispatch({ type: 'SEARCH', payload: pattern.toLowerCase() });
|
||||
}
|
||||
}, [enabled, pattern, state.status, state.pattern]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user