Bug Report T843694
Visible to All Users

Templates - Typescript - The "t?TsType?" template is expanded inside comments

created 5 years ago

Under Javascript there is a set of code templates for Typescript. The `type references` template contains a template defined as `t?TsType?` It is too aggressive and causes problems. If you are typing a JSDoc comment and put the word `to` into the comment then it is converted to a type reference even though `to` is a common word.

```typescript
/**
 * The path to
 */
```

Fixing it each time is annoying so right now the easiest thing to do is disable this template. It should be adjusted to not automatch to common words like `to`.

Show previous comments (1)
MT MT
Michael Taylor 5 years ago

    Clarification on the instructions. It occurs when you are on a `param` line and type `a to`. Not sure the rules around this though.

    I'm attaching my code templates and a demo project set up already. Note that there was no hidden `.cr` folder in the solution directory. Just the standard `.vs` folder.

    MT MT
    Michael Taylor 5 years ago

      Wrong zip attached

      DevExpress Support Team 5 years ago

        Hi Michael,

        Thank you for sending us the test project.
        I was able to reproduce the problem.
        We need some time to research and correct it. We will let you know once changes are ready.

        Answers approved by DevExpress Support

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

          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.