async fn find_arg_completions(
    params: lsp::CompletionParams,
    source: String,
) -> Result<lsp::CompletionList, Error> {
    let callbacks = crate::shared::Callbacks {
        buckets: None,
        measurements: None,
        tag_keys: None,
        tag_values: None,
    };
    let info = CompletionInfo::create(params.clone(), source)?;

    if let Some(info) = info {
        if info.ident == "bucket" {
            return get_bucket_completions(
                callbacks,
                get_trigger(params),
            )
            .await;
        }
    }

    Ok(lsp::CompletionList {
        is_incomplete: false,
        items: vec![],
    })
}
// XXX: sean (10 Aug 2021) - This function is a no-op, since the new server
// does not yet support completion callbacks
sean (10 Aug 2021) - This function is a no-op, since the new server
does not yet support completion callbacks
sean ( 10 Aug 2021 ) - This function is a no - op since the new server does not yet support completion callbacks
async fn find_arg_completions(
    params: lsp::CompletionParams,
    source: String,
) -> Result<lsp::CompletionList, Error> {
    let callbacks = crate::shared::Callbacks {
        buckets: None,
        measurements: None,
        tag_keys: None,
        tag_values: None,
    };
    let info = CompletionInfo::create(params.clone(), source)?;
    if let Some(info) = info {
        if info.ident == "bucket" {
            return get_bucket_completions(
                callbacks,
                get_trigger(params),
            )
            .await;
        }
    }
    Ok(lsp::CompletionList {
        is_incomplete: false,
        items: vec![],
    })
}
async fn find_arg_completions ( params : lsp :: CompletionParams , source : String , ) -> Result < lsp :: CompletionList , Error > { let callbacks = crate :: shared :: Callbacks { buckets : None , measurements : None , tag_keys : None , tag_values : None , } ; let info = CompletionInfo :: create ( params . clone ( ) , source ) ? ; if let Some ( info ) = info { if info . ident == " " { return get_bucket_completions ( callbacks , get_trigger ( params ) , ) . await ; } } Ok ( lsp :: CompletionList { is_incomplete : false , items : vec ! [ ] , } ) }
XXX: sean (10 Aug 2021) - This function is a no-op, since the new server
does not yet support completion callbacks
XXX : sean ( 10 Aug 2021 ) - This function is a no - op since the new server does not yet support completion callbacks
params
lsp::CompletionParams
source
String