diff options
| author | Leo <[email protected]> | 2025-06-12 02:21:54 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-11 18:21:54 -0700 |
| commit | 1ef68e061213b6b170bd979d31d4805da2357272 (patch) | |
| tree | ddd91ec2a7841e763676e09765adf6f21880c2c3 /packages/cli/src/ui/hooks/useGeminiStream.ts | |
| parent | dd53e5c96aa01708a3bdb675c8a8e0d71be35651 (diff) | |
feat: External editor settings (#882)
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/useGeminiStream.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts index 4d6bbcba..56e87fc3 100644 --- a/packages/cli/src/ui/hooks/useGeminiStream.ts +++ b/packages/cli/src/ui/hooks/useGeminiStream.ts @@ -19,6 +19,7 @@ import { ToolCallRequestInfo, logUserPrompt, GitService, + EditorType, } from '@gemini-cli/core'; import { type Part, type PartListUnion } from '@google/genai'; import { @@ -83,6 +84,7 @@ export const useGeminiStream = ( import('./slashCommandProcessor.js').SlashCommandActionReturn | boolean >, shellModeActive: boolean, + getPreferredEditor: () => EditorType | undefined, ) => { const [initError, setInitError] = useState<string | null>(null); const abortControllerRef = useRef<AbortController | null>(null); @@ -115,6 +117,7 @@ export const useGeminiStream = ( }, config, setPendingHistoryItem, + getPreferredEditor, ); const pendingToolCallGroupDisplay = useMemo( |
