Fix off by one error navigating to line number in Rider

Fixes https://github.com/JetBrains/godot-support/issues/61

(cherry picked from commit deef9a73a5)
This commit is contained in:
Ivan Shakhov 2021-01-28 22:41:12 +01:00 committed by Rémi Verschelde
parent 38a94ce2bc
commit 7ecc2561cd
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -104,7 +104,7 @@ namespace GodotTools.Ides.Rider
if (line >= 0)
{
args.Add("--line");
args.Add(line.ToString());
args.Add((line + 1).ToString()); // https://github.com/JetBrains/godot-support/issues/61
}
args.Add(scriptPath);
try