Comment out label_for_completion for now

This commit is contained in:
Isaac Clayton 2022-06-13 16:58:56 +02:00
parent f61ef446d3
commit 42fc278913
2 changed files with 40 additions and 24 deletions

View file

@ -169,10 +169,26 @@ pub fn cached_server_binary(container_dir: PathBuf) -> Option<PathBuf> {
}
}
#[export]
pub fn label_for_completion(label: String) -> Option<String> {
None
}
// #[export]
// pub fn label_for_completion(
// item: &lsp::CompletionItem,
// // language: &language::Language,
// ) -> Option<language::CodeLabel> {
// // TODO: Push more of this method down into the plugin.
// use lsp::CompletionItemKind as Kind;
// let len = item.label.len();
// let grammar = language.grammar()?;
// let kind = format!("{:?}", item.kind?);
// // TODO: implementation
// let highlight_id = grammar.highlight_id_for_name(&name)?;
// Some(language::CodeLabel {
// text: item.label.clone(),
// runs: vec![(0..len, highlight_id)],
// filter_range: 0..len,
// })
// }
#[export]
pub fn initialization_options() -> Option<String> {