refactor(core): Rename useSlashCompletion to useCommandCompletion (#5532)

This commit is contained in:
Sandy Tao
2025-08-04 13:35:26 -07:00
committed by GitHub
parent 37b83e05a7
commit 8da6d23688
4 changed files with 141 additions and 141 deletions

View File

@@ -15,7 +15,7 @@ import chalk from 'chalk';
import stringWidth from 'string-width';
import { useShellHistory } from '../hooks/useShellHistory.js';
import { useReverseSearchCompletion } from '../hooks/useReverseSearchCompletion.js';
import { useSlashCompletion } from '../hooks/useSlashCompletion.js';
import { useCommandCompletion } from '../hooks/useCommandCompletion.js';
import { useKeypress, Key } from '../hooks/useKeypress.js';
import { CommandContext, SlashCommand } from '../commands/types.js';
import { Config } from '@google/gemini-cli-core';
@@ -78,7 +78,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
const shellHistory = useShellHistory(config.getProjectRoot());
const historyData = shellHistory.history;
const completion = useSlashCompletion(
const completion = useCommandCompletion(
buffer,
dirs,
config.getTargetDir(),