Reproduction steps:
1. Open the attached “IN-98860” project
2. Open the “Script.cs” script
3. Right-click on “string” and select “Go To Definition” (If using JetBrains Rider, select “Go To Declaration and Usages”)
4. Observe the opened file
Expected result: The code editor will correctly decompile and open the original String.cs code
Actual result: The code editor won’t decompile the String.cs code and instead will open the reference System.cs code
Reproducible with: 2022.1.0a3, 2022.3.62f1, 6000.0.50f1, 6000.1.5f1, 6000.2.0b3
Reproducible environments: Windows 11 (by reporter), macOS 15.5
Not reproducible environments: No other environments tested
Note: Editor scripts (Scripts in the “Editor” folder) do get decompiled as expected