Bug Report T407304
Visible to All Users

CodeRush for Roslyn does not link property and field types when expanding XPO templates

created 9 years ago

Hi,

I am not exactly sure what should and what should not work in Roslyn, what is planned and what not.
I will report issues I have (compared to classic CodeRush) and you can sort it out.

When I invoke XPO template, for instance xpo and tab, object property template is expanded, but type between field and property is not linked.
So, when I change actual type of property, field remains original type created when template was expanded. See image attached.

In classic CodeRush this worked and was very convenient when I needed to change type.
Can this be implemented in Roslyn version as well?

Thanks,
Mario

Show previous comments (6)
DevExpress Support Team 9 years ago

    We have changed the default behavior because links were not always closed after the expansion. Alive links accumulated and could cause some side-effects.
    Still you can easily change this behavior. After you install version 16.1.6, follow these steps:

    1. From the VisualStudio menu, select "CodeRush\Options…" .
    2. In the tree view on the left, navigate to this folder:

    Editor\Code Templates

    1. Select the "Templates" options page.
    2. Ensure that the correct language is selected in the combo box (in the bottom-left corner).
    3. Select the DevEx\XPO\xp?Type? item from the templates tree.
    4. Change the default value of the template
          «:#PersistentPropertyReadWrite#»
         to
         «:#PersistentPropertyReadWrite#(SelectPropertyType=true)»
    5. Click the OK button.

    These changes will work in releases starting with 16.1.6, which will be published in the near future. However, if you want to try it out right now, we can send you a daily-build.

    Also, let me thank you for your positive feedback about our new product. It would be great if you can share it in the Visual Studio Gallery.

    MB MB
    Mario Blatarić 9 years ago

      Hi,

      Thanks for explanation.
      I will see how new behavior works for me with new xp template and then decide.
      No need for daily build, I am ok waiting for the release.

      Regards,
      Mario

      DevExpress Support Team 9 years ago

        OK, we will be looking forward to your feedback on v16.1.6.

        Answers approved by DevExpress Support

        created 9 years ago (modified 9 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Comments (1)
          DevExpress Support Team 7 years ago

            We add xpo mnemonic the same as with xp.  expansion. You can download the hotfix from this link.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.