From 8698584bd19c82819e1c803018303aab86fbaafb Mon Sep 17 00:00:00 2001 From: LSTM-Kirigaya <1193466151@qq.com> Date: Mon, 23 Dec 2024 20:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20endmodule=20=E5=90=8E?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=20inlay=20hints=20=E5=9C=A8=E7=BB=93?= =?UTF-8?q?=E5=B0=BE=E5=A4=84=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/inlay_hint/sv.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/inlay_hint/sv.rs b/src/inlay_hint/sv.rs index 7039eab..bbc4778 100644 --- a/src/inlay_hint/sv.rs +++ b/src/inlay_hint/sv.rs @@ -83,8 +83,11 @@ fn make_endmodule_hints( value: format!("module {}", module.name) }; + let mut pos = end_pos.to_lsp_position(); + pos.character += 1; + let hint = InlayHint { - position: end_pos.to_lsp_position(), + position: pos, label: InlayHintLabel::String(format!("module {}", module.name)), padding_left: Some(true), padding_right: Some(true),