From d57cb460e25a12e11f43669196a0b446199ff3fd Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Wed, 15 Feb 2023 19:53:31 +0100 Subject: [PATCH] C#: Open the solution directory when using VSCode The solution directory used to be the same as the project directory (`res://`). We now allow specifying a different path for the solution and the other external editors already use that (which seems more convenient for multi-project scenarios). --- modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs b/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs index 43ead4af69b..060c01b3f92 100644 --- a/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs +++ b/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs @@ -272,8 +272,7 @@ namespace GodotTools } } - string resourcePath = ProjectSettings.GlobalizePath("res://"); - args.Add(resourcePath); + args.Add(Path.GetDirectoryName(GodotSharpDirs.ProjectSlnPath)); string scriptPath = ProjectSettings.GlobalizePath(script.ResourcePath);