Setup C adapter with test binary

This commit is contained in:
Julia 2023-06-15 12:03:11 -04:00
parent 4d24eae901
commit f81ccbd652
5 changed files with 40 additions and 24 deletions

View file

@ -109,9 +109,17 @@ impl super::LspAdapter for CLspAdapter {
.await
.log_err()
}
fn installation_test_binary(&self, container_dir: PathBuf) -> LanguageServerBinary {
unimplemented!();
async fn installation_test_binary(
&self,
container_dir: PathBuf,
) -> Option<LanguageServerBinary> {
self.cached_server_binary(container_dir)
.await
.map(|mut binary| {
binary.arguments = vec!["--help".into()];
binary
})
}
async fn label_for_completion(