Skip to content

Commit

Permalink
properly compute checked span
Browse files Browse the repository at this point in the history
  • Loading branch information
gabritto committed Mar 28, 2024
1 parent 7b53e4f commit 69aacf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@ export function createLanguageService(
const semanticDiagnostics = program.getSemanticDiagnostics(targetSourceFile, cancellationToken, nodes);
return {
diagnostics: semanticDiagnostics.slice(),
spans: normalizeSpans(nodes.map(node => createTextSpanFromNode(node, targetSourceFile))),
spans: normalizeSpans(nodes.map(node => createTextSpanFromBounds(node.getFullStart(), node.getEnd()))),
};
}

Expand Down

0 comments on commit 69aacf4

Please sign in to comment.