refactor(config): remove enablePromptCompletion from settings (#19974)

This commit is contained in:
Sehoon Shon
2026-02-22 19:10:20 -05:00
committed by GitHub
parent a91bc60e18
commit c537fd5aec
13 changed files with 40 additions and 86 deletions

View File

@@ -156,9 +156,7 @@ export function useCommandCompletion({
// Check for prompt completion - only if enabled
const trimmedText = buffer.text.trim();
const isPromptCompletionEnabled =
config?.getEnablePromptCompletion() ?? false;
const isPromptCompletionEnabled = false;
if (
isPromptCompletionEnabled &&
trimmedText.length >= PROMPT_COMPLETION_MIN_LENGTH &&
@@ -179,7 +177,7 @@ export function useCommandCompletion({
completionStart: -1,
completionEnd: -1,
};
}, [cursorRow, cursorCol, buffer.lines, buffer.text, config]);
}, [cursorRow, cursorCol, buffer.lines, buffer.text]);
useAtCompletion({
enabled: active && completionMode === CompletionMode.AT,
@@ -204,7 +202,6 @@ export function useCommandCompletion({
const promptCompletion = usePromptCompletion({
buffer,
config,
enabled: active && completionMode === CompletionMode.PROMPT,
});
useEffect(() => {