Add warning message for use of positional

This commit is contained in:
Vansh Nath 2025-04-06 18:42:45 +02:00
parent 1c9377df6f
commit b0e5979e94
No known key found for this signature in database
GPG Key ID: 709BF3EAFB217A96

View File

@ -105,6 +105,7 @@ impl<T: Completer> Completer for CustomCompletion<T> {
if let Some(positional) =
options.get("positional").and_then(|val| val.as_bool().ok())
{
log::warn!("Use of the positional option is deprecated. Use the substring match algorithm instead.");
completion_options.positional = positional;
}
if let Some(algorithm) = options