Skip to content

CompletionProviderScope

Controls which completion surfaces may invoke a CompletionDelegate.

public enum CompletionProviderScope

The provider is invoked by in-process surfaces only: the interactive Tab menu and the complete ambient command. This is the default because the shell completion bridge spawns a new process for every completion request and blocks the user’s shell until it answers — a slow provider (network, database) must not run there implicitly.

Interactive = 0

CompletionProviderScope

The provider is additionally invoked by the shell completion bridge (completion __complete). Opt in only when the provider is fast enough for a blocking shell Tab, such as in-memory or local lookups.

InteractiveAndShell = 1

CompletionProviderScope