TODO triggers don't work without trailing space

Issue #143 resolved
Jeff Yates created an issue

We have a variety of TODO type comments. They often are of the following formats:

TODO(name, issue):
TODO(name):
TODO:

However, the codelens for raising an Jira ticket doesn’t appear unless the actual TODO part is trailed by a space. This makes it useless for us as we’d have to edit all our TODOs, HACKs, etc. before the codelens appears.

Could you make this either take a regex, or just not assume a trailing space?

Name: Atlassian for VSCode (Official)
Id: atlassian.atlascode
Description: Bringing the power of Jira Cloud and Bitbucket Cloud to VSCode - With Atlassian for VSCode you can create and view issues, start work on issues, create pull requests, do code reviews, start builds, get build statuses and more!
Version: 1.4.0
Publisher: Atlassian
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Atlassian.atlascode

VSCode: Version 1.34.0 (1.34.0)

Comments (6)

  1. Pramod Busam Account Deactivated

    @Jeff Yates The requirement for trailing space sounds like a bug. We’ll look into it.

    You can change the strings that trigger the codelens in the settings screen (`Atlassian: Open Settings` from command palette). One of the presets is TODO:. Can you update that to TODO and see if that works for you?

  2. Log in to comment