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:
parent
b4b59f8706
commit
a159183f52
14 changed files with 300 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue