summaryrefslogtreecommitdiff
path: root/modules/mono/editor
diff options
context:
space:
mode:
authorRedworkDE <10944644+RedworkDE@users.noreply.github.com>2023-02-19 12:41:37 +0100
committerRedworkDE <10944644+RedworkDE@users.noreply.github.com>2023-02-19 12:43:15 +0100
commit756a48023f59bbdb78601ec7f506848eb547e022 (patch)
tree25d864710af4f5d5add29b18ee4592cf06c76498 /modules/mono/editor
parent9ad8dfa6cc1ce55adaabe5336fa2c52fdc74ed0f (diff)
C#: Fix line position when opening file in VSCode
Diffstat (limited to 'modules/mono/editor')
-rw-r--r--modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs2
1 files changed, 1 insertions, 1 deletions
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
{