summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-02-19 20:15:09 +0300
committerGitHub <noreply@github.com>2023-02-19 20:15:09 +0300
commit9f68d06ec2d8dbeb237c5aa5c6f9bbcbe26bde5d (patch)
treec4b73517e81c33201048b7903e4c8fb70d306c46 /modules
parent8357ddef6cdb3ea8ea9d3a713a8c84359157cf70 (diff)
parent756a48023f59bbdb78601ec7f506848eb547e022 (diff)
Merge pull request #73584 from RedworkDE/net-vscode-line
C#: Fix line position when opening file in VSCode
Diffstat (limited to 'modules')
-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
{