Various hover improvements (#5617)
* Show more info on hover for variables Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move hover impls to lsp module Signed-off-by: Nick Cameron <nrc@ncameron.org> * Make hover work on names inside calls, fix doc line breaking, trim docs in tool tips Signed-off-by: Nick Cameron <nrc@ncameron.org> * Test the new hovers; fix signature syntax Signed-off-by: Nick Cameron <nrc@ncameron.org> * Hover tips for kwargs Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -457,7 +457,7 @@ pub trait StdLibFn: std::fmt::Debug + Send + Sync {
|
||||
signature.push(')');
|
||||
}
|
||||
if let Some(return_value) = self.return_value(false) {
|
||||
signature.push_str(&format!(" -> {}", return_value.type_));
|
||||
signature.push_str(&format!(": {}", return_value.type_));
|
||||
}
|
||||
|
||||
signature
|
||||
|
Reference in New Issue
Block a user