Skip to content

Hover misdetects when partial and helper are on the same line #14

Open
@royalfig

Description

@royalfig
<a class="gh-social-link gh-social-facebook" href="{{facebook_url @site.facebook}}" title="Facebook" target="_blank" rel="me noopener">{{> "icons/facebook"}}</a>

Default word detection provided by VS Code's API, uses a simple regex to isolate words. This works for most cases, where {{facebook}} is recognized as facebook. However, for something like a partial, the syntax of which relies on non-word characters, detection is more problematic.

The current custom resolver fails when a helper and partial are on the same line.

Solutions:

  • Write more advanced custom resolvers
  • Remove the default word regex and use a custom one
  • Look into using the Language Extensions API

Metadata

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