Cant initialize private field from constructor in Context Actions in c#

Hi! While trying to initialize public field from constructor in Context Actions menu (by pressing alt+enter) there is an option to do it. But doing same thing to private do not give such option. Is it aint how it should be or am I missing something? My rider version is 2022.2.4 

1
3 comments

Hello Blizzinz,

Thank you for contacting Rider Support.

I could not reproduce the behaviour in my 2022.2.4 installation. Could you please do the following: 

  1. Provide me with a code snippet that experiences issues;
  2. Could you please try to clear the caches via File | Invalidate caches => Invalidate and restart?

Thank you in advance! 

Looking forward to hearing from you soon. 

1

Hi @Anna Morozyuk, so sorry for such a late response and thank you. This topic threw away off my head in the working process. Sadly, your suggestion aint worked for me. To give more context I will leave here an example of two fields Context Actions.

https://drive.google.com/file/d/1y04KoZwoYrMoRWj0uoSGr4pWNWJx1iXl/view
https://drive.google.com/file/d/1JBAsRyJtbw6yrBrmwjqNc-4FTNyKQFaO/view


0

Hello,

Thank you for your reply.

Unfortunately, I was able to find a known issue: 
RSRP-486076

We would appreciate it if you would upvote it in order to bring increased awareness to the issue. One can also click Watch to monitor the status.

Let me know if there is anything else I could help you with. Have a great day!

0

Please sign in to leave a comment.