修复 endmodule 后面的 inlay hints 在结尾处的异常

This commit is contained in:
锦恢 2024-12-23 20:43:13 +08:00
parent b368bc35f5
commit 8698584bd1

View File

@ -83,8 +83,11 @@ fn make_endmodule_hints(
value: format!("module {}", module.name) value: format!("module {}", module.name)
}; };
let mut pos = end_pos.to_lsp_position();
pos.character += 1;
let hint = InlayHint { let hint = InlayHint {
position: end_pos.to_lsp_position(), position: pos,
label: InlayHintLabel::String(format!("module {}", module.name)), label: InlayHintLabel::String(format!("module {}", module.name)),
padding_left: Some(true), padding_left: Some(true),
padding_right: Some(true), padding_right: Some(true),