Skip to content

Handle anchors when returning document links #329

@rcjsuen

Description

@rcjsuen

The &anchor is preventing links from being returned from the fourth line. We should get two results instead of one so we need to add support for anchors in our document link handling code.

services:
  backend:
    build: &anchor
      dockerfile: Dockerfile
  backend2:
    build:
      dockerfile: Dockerfile
[
    {
        "range": {
            "start": {
                "line": 6,
                "character": 18
            },
            "end": {
                "line": 6,
                "character": 28
            }
        },
        "target": "file:///Users/rcjsuen/tmp/empty/Dockerfile",
        "tooltip": "/Users/rcjsuen/tmp/empty/Dockerfile"
    }
]

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions