Save Code context menu option does not save the solution if a filename is selected
GatoCreador887 opened this issue · 0 comments
GatoCreador887 commented
The "Save Code" context menu option does not actually save any code. This is caused by:
AvaloniaILSpy/ILSpy.Core/Commands/SaveCodeContextMenuEntry.cs
Lines 106 to 110 in 4147e8c
Thus, if the user selects a filename to save the solution under, this code simply returns
null
, as if the user had cancelled the saving. If the user does indeed cancel the saving, this goes on to attempt what it should be doing when the user selects a filename. Thus, I suggest this check be changed to filename == null
rather than filename != null
.