Skip to content

Unusable when lib in subdir #9

Open
@digicowsoftware

Description

@digicowsoftware

When the perl lib directory is in a subdirectory of the project (e.g., <root>/mojo/lib/...) this extension is not usable for inserting the package, even with a correct "before" regex.

I've tried:

"before": "^.*lib/{{name}}\\.pm"
"before": "^mojo/lib/{{name}}\\.pm"

And dozens of other permutations. In fact, I could even use something like "before": "ojo/lib/{{name}}\\.pm" and the extension inserts a package name that's correct, but with the unmatched leading "m" intact. However, when I add the "m" to the regex, or use any other regex that should work, the extension's replacement disappears entirely (no "package" entry on ctl-space, no package autocomplete)

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