Add inlay parameter name hints for function calls
Signed-off-by: imtsuki <me@qjx.app>
This commit is contained in:
@@ -952,6 +952,7 @@ pub fn handle_inlay_hints(
|
||||
range: api_type.range.conv_with(&line_index),
|
||||
kind: match api_type.kind {
|
||||
ra_ide::InlayKind::TypeHint => InlayKind::TypeHint,
|
||||
ra_ide::InlayKind::ParameterHint => InlayKind::ParameterHint,
|
||||
},
|
||||
})
|
||||
.collect())
|
||||
|
||||
@@ -197,6 +197,7 @@ pub struct InlayHintsParams {
|
||||
#[derive(Debug, PartialEq, Eq, Deserialize, Serialize)]
|
||||
pub enum InlayKind {
|
||||
TypeHint,
|
||||
ParameterHint,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user