Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Use readonly text buffers when jumping to dependency sources #63

Open
@laughedelic

Description

@laughedelic

Use readonly text buffers when jumping to definitions from dependencies. See scalameta/metals#36.

This requires a change in Metals first so that it will send custom metals: URIs for locations in definitions (instead of the current workaround with temporary files). Then on this side there are 2 things to be done:

  • Register an opener for custom URIs, which will read the source and
  • Create read-only buffer with the content of the source.
    Read-only buffers exist since Atom 1.24, but are currently undocumented. Still, I see setReadonly method in sources, so I assumed it's supported.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions