Bug Report T689960
Visible to All Users

The template expansion gets disabled after the "Exc" key is pressed

created 6 years ago

After a clean install of CodeRush for Roslyn… everything works with code templation expansion (spacebar).

After I press the first time the Esc key into the code editor code expansion is no mor available and also I find it disabled into the SetupWizard .

Thanks.

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

    Hello Pietro,

    Thank you for providing the additional information.

    I have researched it and managed to reproduce the following issue:
    - have changed the language of the operating system to non-english;
    - enabled the "Always expand templates" option;
    - expanding templates works as expected, but Setup Wizard indicates that Template Expansion is disabled;
    - also, there are a lot of identical shortcuts for the "TemplateExpand" action in my settings.

    Here is screencast that illustrates the issue on my side: https://www.screencast.com/t/FdcBCYkG

    We will fix this issue and let you know as soon as possible.

    Would you clarify that you encounter exactly the same behavior?
    The issue is only incorrect displaying the option in Setup Wizard or expanding templates also does not work on your side?

    PA PA
    Pietro Allegretti 6 years ago

      Yes it is exactly the behaviour I have… with multiple shortcuts for the spacebar.

      And if I set "Always expand Intellisense" no more CR templates will be expanded .

      DevExpress Support Team 6 years ago

        Hello Pietro,

        Thank you for the clarification.

        Let me describe why we introduced the "Always expand Intellisense" option.  When the built-in Visual Studio IntelliSense popup is active, pressing the "Space" key inserts/commits the selected IntelliSense item into the code editor. This is the default Visual Studio behavior to which many Visual Studio developers get used. Expanding CodeRush templates using the "Space" key conflicts with this built-in functionality. Therefore, we had to introduce an option to allow a developer to choose what behavior he or she prefers: insert an IntelliSense suggestion or expand a CodeRush template.

        Am I correct that you prefer expanding CodeRush templates in this situation?  If so, I suggest that you activate the "Always expand templates" option. This way, the selected IntelliSense suggestion will not be inserted and a CodeRush template will be expanded instead.

        Here is a screencast that illustrates how this option works: https://www.screencast.com/t/SUbZ8rdWqI8G

        Answers approved by DevExpress Support

        created 6 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.

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

            Hello Pietro,

            We already released v18.2.4 and it can be downloaded both directly from Visual Studio (through the "Extensions and Updates" dialog) and via the Download Manager.  I have just verified this and v18.2.4 is correctly downloaded from both these channels.  May I ask you to clarify what way to download the update you tried?

            PA PA
            Pietro Allegretti 6 years ago

              I'm sorry for the mistake I was looking for 18.2.4 in "Universal subscription" line of DownloadManager.

              I've already 18.2.4 of CR installed via Extensions and Updates of VS 2017, but I've to disable it because of performance matters I've described in another ticket.

              Thanks.

              DevExpress Support Team 6 years ago

                Hello Pietro,

                Thank you for your response and explanation.

                We've reproduced this performance issue with v18.2.4 and already fixed it. I see that my colleagues Alex provided you with a patched CodeRush build in the IDE blocking with 18.2.4 thread.  Please let us know whether or not it fixes the problem on your side once you have the opportunity to try this build.

                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.