Skip to content

Commit

Permalink
Merge branch 'main' into dylon/issue-55
Browse files Browse the repository at this point in the history
  • Loading branch information
certik authored Dec 27, 2024
2 parents 2bba6aa + 90d1851 commit 4b6f936
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/lfortran-accessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ export class LFortranCLIAccessor implements LFortranAccessor {
for (let i = 0; i < k; i++) {
const diagnostic: Diagnostic = results.diagnostics[i];
diagnostic.source = "lfortran-lsp";
if (!uri.includes(".ts")) {
diagnostic.range.start.line--;
}
diagnostic.range.start.character--;
diagnostics.push(diagnostic);
}
Expand Down

0 comments on commit 4b6f936

Please sign in to comment.