From 27fbc6b79367b353b1310cbf30395d4ce299e6bc Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Wed, 29 Oct 2025 19:45:49 +1000 Subject: [PATCH] only allow rename on source symbols --- .../Features/CodeEditor/SharpIdeCodeEdit_RenameSymbol.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_RenameSymbol.cs b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_RenameSymbol.cs index 1a866c8..216f8cb 100644 --- a/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_RenameSymbol.cs +++ b/src/SharpIDE.Godot/Features/CodeEditor/SharpIdeCodeEdit_RenameSymbol.cs @@ -1,4 +1,5 @@ using Godot; +using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using SharpIDE.Application.Features.Analysis; @@ -17,6 +18,7 @@ public partial class SharpIdeCodeEdit GD.Print("No symbol found at cursor position for renaming."); return; } + if (roslynSymbol.IsFromSource() is false) return; var renameSymbolDialog = _renameSymbolDialogScene.Instantiate(); renameSymbolDialog.SymbolName = roslynSymbol.Name;