Friendship ended with VISUAL STUDIO, Now RIDER is my best friend

This commit is contained in:
Simon Lübeß
2024-03-09 20:33:26 +01:00
parent 09624e4e59
commit 4e9a6b54f3
7 changed files with 167 additions and 8 deletions
@@ -10,6 +10,7 @@ using GlitchyEngine.Content;
using GlitchyEngine;
using GlitchyEditor.Assets;
using System.Diagnostics;
using GlitchyEditor.CodeEditors;
namespace GlitchyEditor.EditWindows
{
@@ -242,7 +243,7 @@ namespace GlitchyEditor.EditWindows
if (ImGui.MenuItem("Open C# Project..."))
{
VisualStudioUtility.OpenScriptProject();
RiderIdeAdapter.OpenScriptProject();
}
ImGui.AttachTooltip("Opens the C# Solution of this project.");
@@ -865,7 +866,7 @@ namespace GlitchyEditor.EditWindows
if (entry->Path.EndsWith(".cs"))
{
// Obviously windows only
VisualStudioUtility.OpenScript(entry->Path);
RiderIdeAdapter.OpenScript(entry->Path);
}
else if (Path.OpenFolder(entry->Path) case .Err)
Log.EngineLogger.Error("Failed to open file.");
+2 -1
View File
@@ -7,6 +7,7 @@ using GlitchLog;
using GlitchyEngine.Scripting;
using GlitchyEngine.Renderer;
using GlitchyEngine;
using GlitchyEditor.CodeEditors;
namespace GlitchyEditor.EditWindows;
@@ -315,7 +316,7 @@ class LogWindow : EditorWindow
{
if (message.Source.MessageOrigin != null)
{
VisualStudioUtility.OpenScript(message.Source.MessageOrigin.FileName);
RiderIdeAdapter.OpenScript(message.Source.MessageOrigin.FileName);
}
}