Skip to content

Commit 99f6575

Browse files
committed
fix range
1 parent 9d55648 commit 99f6575

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/core/src/codewhisperer/util/diagnosticsUtil.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,16 @@ export function toIdeDiagnostics(diagnostic: vscode.Diagnostic): IdeDiagnostic {
6161
ideDiagnosticType: getDiagnosticsType(diagnostic.message),
6262
severity: severity,
6363
source: diagnostic.source,
64-
range: diagnostic.range,
64+
range: {
65+
start: {
66+
line: diagnostic.range.start.line,
67+
character: diagnostic.range.start.character,
68+
},
69+
end: {
70+
line: diagnostic.range.end.line,
71+
character: diagnostic.range.end.character,
72+
},
73+
},
6574
}
6675
}
6776

0 commit comments

Comments
 (0)