Add Clojure language support with tree-sitter and LSP (#6988)

Current limitations:
* Not able to navigate into JAR files 

Release Notes:

- Added Clojure language support

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
Paulo Roberto de Oliveira Castro 2024-02-10 18:28:48 -03:00 committed by GitHub
parent b4b59f8706
commit a159183f52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 300 additions and 3 deletions

View file

@ -571,6 +571,27 @@ impl Workspace {
cx.new_view(|_| MessageNotification::new(message.clone()))
}),
project::Event::LanguageServerPrompt(request) => {
let request = request.clone();
cx.spawn(|_, mut cx| async move {
let messages = request
.actions
.iter()
.map(|action| action.title.as_str())
.collect::<Vec<_>>();
let index = cx
.update(|cx| {
cx.prompt(request.level, "", Some(&request.message), &messages)
})?
.await?;
request.respond(index).await;
Result::<(), anyhow::Error>::Ok(())
})
.detach()
}
_ => {}
}
cx.notify()