Bug Report T1030997
Visible to All Users

Code Places - The “Code Places” feature should not show items for anonymous functions inside a member of the TypeScript class

created 3 years ago (modified 3 years ago)

This is an example of Code Places for a ts file. The layout is too busy for me and it makes it hard and confusing to use. The only purpose for this feature for me is to find the property or method I am interested in in the code.

  • There are too many boxes. Boxes inside boxes. I don't care to see the parameters or return types of methods. Unless these methods are overloaded, I don't want to show parameters and return types. They just make the Code Places busy for no good reason. Or at least put a user setting to collapse these inner boxes by default. Something like Collapse All for whatever creates the inner boxes. Collapse All collapses everything to just the namespace name. I am not sure what benefit this has.

  • I selected sorting by kind then name, yet I am seeing methods interspersed with properties. Plus properties and methods/functions both have the same wrench icon. I see some properties then some methods in boxes then properties then boxes… I would like to see the two groups separated. All the pure properties at the top then all the methods below it.

  • A setting to hide the icons as well. I am looking for a minimalist view. One property or method name per line and hide everything else. This also alleviates scrolling in big files with many properties and methods. (method or function).

Maybe you can pass these suggestions to Mark Miller.

Comments (3)
DevExpress Support Team 3 years ago

    Hello,

    Thank you for pointing this issue out and for the screenshot.

    We agree that Code Places produces a lot of borders for TypeScript members which contain anonymous functions. We discussed this behavior with the team and decided to make it so that the Code Places feature doesn't show items for anonymous functions inside a member of a TypeScript class.

    For example, let's take the following code sample:

    TypeScript
    class Test { cancel = (): void => { console.log("cancel"); } }

    In this case, the "cancel" item without nested items will be shown for the "cancel" property. It will have a property icon and will be grouped with other properties in this class. Please let us know whether this behavior is what you expect.

      I think that would work. I only use Code Places for quick navigation so the inner details (properties and functions) for each function are not important for me to visible. They can be hidden or collapsed.

      Thanks.

      DevExpress Support Team 3 years ago

        Thank you for your clarification.

        Answers approved by DevExpress Support

        created 3 years ago

        We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

        Note: Hotfixes may be unavailable for betas/updates set for release within a week.

          Comments (1)
          DevExpress Support Team 3 years ago

            We have published the requested patched build and are looking forward to hearing about your results. Meanwhile, we would like to mark this ticket as Public, if you do not mind, to include it in the What's New lists for future maintenance updates.

            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.