Pass params to enable_in_context so it can use, e.g.,
params.context.option.reason to suppress only autocomplete in
certain contexts. Without params.context the reason is only accessible
via the hacky require('cmp').core.context, which might be subject to
data races because core.context is overwritten each time a completion
request is made to a source.
Pass
params
toenable_in_context
so it can use, e.g.,params.context.option.reason
to suppress only autocomplete in certain contexts. Withoutparams.context
the reason is only accessible via the hackyrequire('cmp').core.context
, which might be subject to data races becausecore.context
is overwritten each time a completion request is made to a source.