Context menu not showing in .cs files with Rider
Describe the bug A clear and concise description of what the bug is.
When typing a word, defined in the definitions yaml file, it shows the context name, but no definition, nor a pop-up with details. It works in the definition yaml file itselt, just not in the .cs files.
To Reproduce
- Open or create a new project in Rider, add the contextive definition file as described in the 'Getting Started' part.
- Open the 'definitions.yml' and hover over any of the definitions, you will see a popup showing the definition.
- Create a new .cs file, a class, and type a word from the definition file (e.g.: context). Only the context name will show, no popup or definition will show:
Expected behavior Showing the definition of the word, or showing a popup.
Screenshots
Not working in a c-sharp file:
Working in the definition file:
Desktop (please complete the following information):
- OS: Arch Linux ( + i3wm)
- IDE: JetBrains Rider 2023.3.3
Additional context Some extra logfiles:
Reported to JetBrains here - https://youtrack.jetbrains.com/issue/IDEA-349128 - they have confirmed it's an issue.
Updated IntelliJ Plugin README to warn of this issue.
JetBrains have closed this request without a fix: https://youtrack.jetbrains.com/issue/IDEA-349128
Rider has a complex architecture with two separate processes: ReSharper-based backend and IntelliJ-based frontend. Depending on the file type, code insight features are provided by one of them.
IntelliJ LSP API works in the IntelliJ-based frontend but C# is supported via the ReSharper-based backend. So, LSP-based features can't be added to languages that are natively supported in Rider via the ReSharper-based backend.
I have to close this request without a fix, unfortunately.
I'm investigating alternative approaches, including the use of the ReSharper Plugin to provided dedicated Rider support.
To clarify the scenario that doesn't work, it's when opening a Visual Studio Solution. When opening in 'folder' mode, Contextive appears to work in all files.