CompletionProviderScope
Controls which completion surfaces may invoke a CompletionDelegate.
- Kind:
Enum - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/Autocomplete/CompletionProviderScope.cs
Signature
Section titled “Signature”public enum CompletionProviderScopeFields
Section titled “Fields”Interactive
Section titled “Interactive”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 = 0Returns
Section titled “Returns”InteractiveAndShell
Section titled “InteractiveAndShell”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