mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
refactor(core): Rename useSlashCompletion to useCommandCompletion (#5532)
This commit is contained in:
parent
37b83e05a7
commit
8da6d23688
4 changed files with 141 additions and 141 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue