Skip to content

Commit 71f927e

Browse files
authored
fix: avoid semantic token modifier inheritance for dependent bodies (#109)
1 parent 49ffde6 commit 71f927e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decoder/semantic_tokens.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (d *PathDecoder) tokensForBody(body *hclsyntax.Body, bodySchema *schema.Bod
127127

128128
depSchema, _, ok := NewBlockSchema(blockSchema).DependentBodySchema(block.AsHCLBlock())
129129
if ok {
130-
tokens = append(tokens, d.tokensForBody(block.Body, depSchema, true, blockModifiers)...)
130+
tokens = append(tokens, d.tokensForBody(block.Body, depSchema, true, []lang.SemanticTokenModifier{})...)
131131
}
132132
}
133133

0 commit comments

Comments
 (0)