atom-ide-scala icon indicating copy to clipboard operation
atom-ide-scala copied to clipboard

Use readonly text buffers when jumping to dependency sources

Open laughedelic opened this issue 7 years ago • 0 comments

Use readonly text buffers when jumping to definitions from dependencies. See https://github.com/scalameta/metals/issues/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.

laughedelic avatar Apr 22 '18 22:04 laughedelic