Repository navigation
Minimal LSP integration #377
Replies: 1 comment
|
i don't think this belongs in revdiff. It is a tool to review a diff and annotate it. It is not a navigation tool and not an IDE, and following symbols across a codebase is the IDE part. there are practical problems too. A language server answers for the files on disk, while the diff on screen can be staged changes or a range between two commits, and for a diff like that there is nothing to jump to. Targets outside the diff have to become entries in the file tree. Servers have to be started, kept alive and shut down, and each one brings its own quirks. That is a lot to maintain for something an editor already does. for reading a callee, your fork is the right home for the prototype. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When reviewing a change I often need to see what a called function does, and today that means leaving revdiff for an editor.
Is there a place for minimal LSP integration in mainline revdiff? I mean being able to, for example, jump to a function's definition or read its documentation without leaving the review context. All of this needs only a small slice of the protocol on the client side (hover, go to definition, go to implementations/references), with no new dependencies. Here is how it looks in my prototype. All language servers are configured optionally and are not shipped with revdiff.
revdiff-lsp-compact.mp4
The prototype
All reactions