Remove stale label_for_completion impl from JSON plugin
This commit is contained in:
parent
1dd92c3c28
commit
19d19271f6
2 changed files with 0 additions and 42 deletions
|
@ -89,27 +89,6 @@ pub fn cached_server_binary(container_dir: PathBuf) -> Option<PathBuf> {
|
|||
}
|
||||
}
|
||||
|
||||
// #[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> {
|
||||
Some("{ \"provideFormatter\": true }".to_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue