Bug Report T736181
Visible to All Users

String Format Assistant – The String Format Assistant window opens when writing interpolated text in incorrect context

created 6 years ago

Hello, CR format helper window opens in incorrect context when writing this text. See the attached video. I want to insert text hookUri= after {project.Name},
and format helper window open when writing the first letter. Which is a bug. I am not in the context of a parameter.
_log.Debug($"Event='{eventType}' for project={project.Name}, {hookUri} is already subscribed.");

Comments (1)
DevExpress Support Team 6 years ago

    Hi,

    Thank you for providing the code sample and screencast. I have reproduced this issue locally. Currently, we have some problems with CodeRush features compatibility and Visual Studio asynchronous code completion. We are working on it and will inform you of our progress.

    As a temporary workaround, I suggest you to disable asynchronous code completion. To do this, perform the following steps:

    1. Select "Tools\Options…" from the Visual Studio menu.
    2. In the tree view on the left, navigate to the "Environment\Preview Features" options page.
    3. Uncheck the "Use asynchronous code completion in C# and Visual Basic" item.
    4. Restart Visual Studio.

    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.

      Comments (3)
      K K
      Karel Král Scia 6 years ago

        This issue is not fixed in 19.1.3, see attached screencast. When I insert space just before string end and delete the space, assistant appears event if not be

        C#
        public static class NavigationContextExt { public static string GetCompleteUri(this NavigationContext navigationContext) { Guard.ArgumentNotNull(navigationContext, nameof(navigationContext)); return navigationContext.Parameters.Count == 0 ? navigationContext.Uri.AbsolutePath : $"{navigationContext.Uri}?{navigationContext.Parameters.ToString()}"; } }

        ing in format parameter context.

        DevExpress Support Team 6 years ago

          Karel,

          Thank you for the additional code sample. I have reproduced this issue locally. It seems like an edge case when the editor caret is placed right after the closing "}" character.
          Please give us some time to fix it.

          DevExpress Support Team 6 years ago

            Hello,

            We have fixed this issue and prepared a build with the hotfix for you: CodeRush-19.1.3.19140.vsix
            Please install it and confirm that the issue is fixed on your side.

            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.