Setting the shader name of a Sprite2D with icon.svg as its texture to res://icon_shader.gdshader causes the Godot editor to freeze. Changing the shader name to res://shader_practice.gdshader (the same as the scene name) resolves this issue.
Steps to reproduce
Create a new scene with Node2D as the root node.
Add a Sprite2D node as a child and set its texture by dragging and dropping icon.svg (the default icon) onto it.
Save the scene as shader_practice.tscn.
In the Material tab of the Sprite2D, create a new shader.
Set the shader's name to res://icon_shader.gdshader and create. At this point, the editor freezes.
However, when setting the shader's name to res://shader_practice.gdshader(same as the scene name), the shader can be created without issues.
Tested versions
v4.3.stable
System information
Windows 10. Godot v4.3.stable - Vulkan (Mobile) - NVIDIA GeForce GTX 1060 6GB - Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 Threads)
Issue description
Setting the shader name of a Sprite2D with icon.svg as its texture to res://icon_shader.gdshader causes the Godot editor to freeze. Changing the shader name to res://shader_practice.gdshader (the same as the scene name) resolves this issue.
Steps to reproduce
Minimal reproduction project (MRP)
N/A