fix(ui): restore isSlashCommand import and narrow space-suppression logic

This commit is contained in:
Keith Guerin
2026-02-27 14:38:31 -08:00
parent a0f609d2d9
commit 980eb598f4

View File

@@ -9,8 +9,8 @@ import type { Suggestion } from '../components/SuggestionsDisplay.js';
import type { CommandContext, SlashCommand } from '../commands/types.js';
import type { TextBuffer } from '../components/shared/text-buffer.js';
import { logicalPosToOffset } from '../components/shared/text-buffer.js';
import { isSlashCommand } from '../utils/commandUtils.js';
import { toCodePoints } from '../utils/textUtils.js';
import { isSlashCommand } from '../utils/commandUtils.js';
import { useAtCompletion } from './useAtCompletion.js';
import { useSlashCompletion } from './useSlashCompletion.js';
import { useShellCompletion } from './useShellCompletion.js';
@@ -37,7 +37,7 @@ export interface UseCommandCompletionReturn {
showSuggestions: boolean;
isLoadingSuggestions: boolean;
isPerfectMatch: boolean;
setActiveSuggestionIndex: React.Dispatch<React.SetStateAction<number>>;
setActiveSuggestionIndex: (index: number) => void;
resetCompletionState: () => void;
navigateUp: () => void;
navigateDown: () => void;