mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-03 01:40:59 -07:00
feat: auto-execute on slash command completion functions (#14584)
This commit is contained in:
@@ -51,6 +51,8 @@ export interface UseCommandCompletionReturn {
|
||||
getCommandFromSuggestion: (
|
||||
suggestion: Suggestion,
|
||||
) => SlashCommand | undefined;
|
||||
isArgumentCompletion: boolean;
|
||||
leafCommand: SlashCommand | null;
|
||||
};
|
||||
getCompletedText: (suggestion: Suggestion) => string | null;
|
||||
}
|
||||
|
||||
@@ -419,6 +419,8 @@ export function useSlashCompletion(props: UseSlashCompletionProps): {
|
||||
getCommandFromSuggestion: (
|
||||
suggestion: Suggestion,
|
||||
) => SlashCommand | undefined;
|
||||
isArgumentCompletion: boolean;
|
||||
leafCommand: SlashCommand | null;
|
||||
} {
|
||||
const {
|
||||
enabled,
|
||||
@@ -568,5 +570,7 @@ export function useSlashCompletion(props: UseSlashCompletionProps): {
|
||||
completionEnd,
|
||||
getCommandFromSuggestion: (suggestion: Suggestion) =>
|
||||
getCommandFromSuggestion(suggestion, parserResult),
|
||||
isArgumentCompletion: parserResult.isArgumentCompletion,
|
||||
leafCommand: parserResult.leafCommand,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user