Skip to content

Commit

Permalink
taplo-lsp: fix hover content.
Browse files Browse the repository at this point in the history
  • Loading branch information
yassun7010 committed Aug 9, 2023
1 parent 55c393e commit b477098
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/taplo-lsp/src/handlers/hover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ pub(crate) async fn hover<E: Environment>(
docs
} else if let Some(desc) = schema["description"].as_str() {
desc.to_string()
} else if let Some(title) = schema["title"].as_str() {
title.to_string()
} else {
"".to_string()
}
Expand Down

0 comments on commit b477098

Please sign in to comment.