SwingCompletionSuggestionProvider
class SwingCompletionSuggestionProvider(engine: TerminalCompletionEngine, contextProvider: () -> SwingCompletionContext = { SwingCompletionContext.EMPTY }) : SwingShellSuggestionProvider
Host-neutral adapter from the pure completion engine to Swing suggestions.
The adapter reads contextProvider for every request so hosts can publish current profile and working-directory state without rebuilding the engine.
Parameters
engine
pure progressive completion engine. This adapter does not select a dispatcher; the owning suggestion caller controls its coroutine context.
contextProvider
supplier for current host-owned request metadata.
Constructors
Link copied to clipboard
constructor(engine: TerminalCompletionEngine, contextProvider: () -> SwingCompletionContext = { SwingCompletionContext.EMPTY })
Functions
Link copied to clipboard
open override fun suggestions(request: SwingShellSuggestionRequest): Flow<List<SwingShellSuggestion>>
Returns progressive candidate snapshots adapted to the reusable Swing popup contract.