Draft the hint render data flow
This commit is contained in:
parent
2ead3de7de
commit
4c3c0eb796
6 changed files with 103 additions and 24 deletions
|
@ -1834,6 +1834,7 @@ impl LspCommand for InlayHints {
|
|||
.unwrap_or_default()
|
||||
.into_iter()
|
||||
.map(|lsp_hint| InlayHint {
|
||||
buffer_id: buffer.id() as u64,
|
||||
position: origin_buffer.anchor_after(
|
||||
origin_buffer
|
||||
.clip_point_utf16(point_from_lsp(lsp_hint.position), Bias::Left),
|
||||
|
@ -2006,6 +2007,7 @@ impl LspCommand for InlayHints {
|
|||
let mut hints = Vec::new();
|
||||
for message_hint in message.hints {
|
||||
let hint = InlayHint {
|
||||
buffer_id: buffer.id() as u64,
|
||||
position: message_hint
|
||||
.position
|
||||
.and_then(language::proto::deserialize_anchor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue