From d8861ed873bc12ef7d30ebccae52457b91f8d3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Fri, 27 Dec 2024 10:32:41 -0700 Subject: [PATCH] Put a comment back --- server/src/lfortran-accessors.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/lfortran-accessors.ts b/server/src/lfortran-accessors.ts index 6c6da0b..758ee4b 100644 --- a/server/src/lfortran-accessors.ts +++ b/server/src/lfortran-accessors.ts @@ -379,6 +379,7 @@ export class LFortranCLIAccessor implements LFortranAccessor { const range: Range = location.range; const start: Position = range.start; + // if uri contains .ts file, then we need not to decrement the line and character by 1 if (!uri.includes(".ts")) { start.line--; }