Auto detect all Visual Studio and Rider installs

This commit is contained in:
Simon Lübeß
2026-08-14 23:34:04 +02:00
parent f8e533f28d
commit 62ad8bee35
13 changed files with 703 additions and 563 deletions
@@ -604,13 +604,7 @@ namespace GlitchyEditor.EditWindows
if (ImGui.MenuItem("Open C# Project..."))
{
switch (EditorApp.Instance.Settings.ScriptSettings.SelectedIde)
{
case .VisualStudio:
VisualStudioIdeAdapter.OpenScriptProject();
case .Rider:
RiderIdeAdapter.OpenScriptProject();
}
Editor.Instance.IdeAdapter.OpenScriptProject();
}
ImGui.AttachTooltip("Opens the C# Solution of this project.");
@@ -1440,8 +1434,7 @@ namespace GlitchyEditor.EditWindows
// Special treatment for scripts, open them in Visual Studio.
if (entry->Path.EndsWith(".cs"))
{
// Obviously windows only
RiderIdeAdapter.OpenScript(entry->Path);
Editor.Instance.IdeAdapter.OpenScript(entry->Path);
}
else if (Path.OpenFolder(entry->Path) case .Err)
Log.EngineLogger.Error("Failed to open file.");