Merge pull request #73584 from RedworkDE/net-vscode-line

C#: Fix line position when opening file in VSCode
This commit is contained in:
Yuri Sizov 2023-02-19 20:15:09 +03:00 committed by GitHub
commit 9f68d06ec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,7 +279,7 @@ namespace GodotTools
if (line >= 0)
{
args.Add("-g");
args.Add($"{scriptPath}:{line}:{col}");
args.Add($"{scriptPath}:{line + 1}:{col + 1}");
}
else
{