Browse Source

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

C#: Fix line position when opening file in VSCode
Yuri Sizov 2 years ago
parent
commit
9f68d06ec2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs

+ 1 - 1
modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs

@@ -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
                     {