diff options
author | Raul Santos <raulsntos@gmail.com> | 2023-02-15 19:53:31 +0100 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2023-02-15 20:13:40 +0100 |
commit | d57cb460e25a12e11f43669196a0b446199ff3fd (patch) | |
tree | 2681b5174828434a818919c9f7c1f95dd38d516a /modules/mono | |
parent | f2aae8fa5c2e9d9323832fb43c8446c2e518d698 (diff) |
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).
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs b/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs index 43ead4af69..060c01b3f9 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); |