Skip to content

Commit 66d9745

Browse files
authored
Exclude reparsed nodes from inlay hints (#2593)
1 parent 029dbd2 commit 66d9745

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/ls/inlay_hints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type inlayHintState struct {
6161
}
6262

6363
func (s *inlayHintState) visit(node *ast.Node) bool {
64-
if node == nil || node.End()-node.Pos() == 0 {
64+
if node == nil || node.End()-node.Pos() == 0 || node.Flags&ast.NodeFlagsReparsed != 0 {
6565
return false
6666
}
6767

0 commit comments

Comments
 (0)