瀏覽代碼

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

C#: Fix line position when opening file in VSCode
Yuri Sizov 2 年之前
父節點
當前提交
9f68d06ec2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
                     {