From 756a48023f59bbdb78601ec7f506848eb547e022 Mon Sep 17 00:00:00 2001 From: RedworkDE <10944644+RedworkDE@users.noreply.github.com> Date: Sun, 19 Feb 2023 12:41:37 +0100 Subject: C#: Fix line position when opening file in VSCode --- modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs b/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs index 060c01b3f9..c267d32f5a 100644 --- a/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs +++ b/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 { -- cgit v1.2.3