Skip to content

Add suggestion comment(s) next to the relevant code #1328

Closed
@gitgrimbo

Description

I have a feature request.

Similar to #1120, can there be the ability to have a suggestion(s) appear next to the line(s) of code that the suggestion applies to?

This would help with further manual changes to be made to the code.

E.g., as well as the leading comment:

/*
 * decaffeinate suggestions:
 * DS101: Remove unnecessary use of Array.from

there is also a suggestion comment next to the appropriate line(s) in the code:

  // DS101: Remove unnecessary use of Array.from
  if (Array.from(result.support).includes("x")) {
    out += "ᵖ";
  }

Maybe the example given above is a bit obvious (i.e. I could just search the code for use of Array.from - but for other suggestions, it is less obvious to which part(s) of the code the suggestion(s) applies).

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions