Skip to content

Commit fb3e08c

Browse files
authored
Improve range calculation for linking errors (#1937)
1 parent 583fea6 commit fb3e08c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/langium/src/validation/document-validator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export class DefaultDocumentValidator implements DocumentValidator {
164164
if (linkingError) {
165165
const info: DiagnosticInfo<AstNode, string> = {
166166
node: linkingError.container,
167+
range: reference.$refNode?.range,
167168
property: linkingError.property,
168169
index: linkingError.index,
169170
data: {

0 commit comments

Comments
 (0)