Skip to content

Ignore quoted // #18

Description

@nicksbyman

Noticed that the plugin takes away imports if the type is on the same line as a URL (like "http://myURL" MyDataType, and MyDataType import is taken away).

I think we could make a change to this:

'\v(//.*)@<!<' . s . '>', on line 50.

to make it work. Maybe just exclude comments that are proceeded by a quotation mark. But maybe that's not rigorous enough and we should check for the close quote too.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions