-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show context of references #52
Comments
Hmmm, right, more or less. To understand what you mean, exactly, tell me what you did before getting the prompt in both situations. Does it also happen without helm?
Are you describing a second problem here? |
helm-xref is a package I wrote for xref results. I just used
Yes.
eglot displays one more line than lsp-mode, the definition. That's the first line. It seems this was done for a reason since it is displayed seperately from the other references of that file. |
* eglot.el (eglot--xref-make): Make the item with summary being the whole line at given location, when possible (eglot--locations-to-xrefs,eglot--path-xrefs,eglot--buf-xrefs): Convert location list to xref list, trying to open each file just once. (xref-backend-identifier-at-point): (xref-backend-definitions): (xref-backend-references): Pass the list of locations to eglot--locations-to-xrefs.
* eglot.el (eglot--xref-make): Make the item with summary being the whole line at given location, when possible (eglot--locations-to-xrefs,eglot--path-xrefs,eglot--buf-xrefs): Convert location list to xref list, trying to open each file just once. (xref-backend-identifier-at-point): (xref-backend-definitions): (xref-backend-references): Pass the list of locations to eglot--locations-to-xrefs.
* eglot.el (eglot--xref-make): Make the item with summary being the whole line at given location, when possible (eglot--locations-to-xrefs,eglot--path-xrefs,eglot--buf-xrefs): Convert location list to xref list, trying to open each file just once. (xref-backend-identifier-at-point): (xref-backend-definitions): (xref-backend-references): Pass the list of locations to eglot--locations-to-xrefs.
* eglot.el (eglot--xref-make): Make the item with summary being the whole line at given location, when possible (eglot--locations-to-xrefs,eglot--path-xrefs,eglot--buf-xrefs): Convert location list to xref list, trying to open each file just once. (xref-backend-identifier-at-point): (xref-backend-definitions): (xref-backend-references): Pass the list of locations to eglot--locations-to-xrefs.
* eglot.el (eglot--xref-make): Make the item with summary being the whole line at given location, when possible (eglot--locations-to-xrefs,eglot--path-xrefs,eglot--buf-xrefs): Convert location list to xref list, trying to open each file just once. (xref-backend-identifier-at-point): (xref-backend-definitions): (xref-backend-references): Pass the list of locations to eglot--locations-to-xrefs.
* eglot.el (eglot--xref-make): Make the item with summary being the whole line at given location, when possible (eglot--locations-to-xrefs,eglot--path-xrefs,eglot--buf-xrefs): Convert location list to xref list, trying to open each file just once. (xref-backend-identifier-at-point): (xref-backend-definitions): (xref-backend-references): Pass the list of locations to eglot--locations-to-xrefs.
After an original implementation by Michael Livshin. * eglot.el (eglot--xref-make): Rework. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Simplify call to `eglot--xref-make'.
After an original implementation by Michael Livshin. Also close #127. * eglot.el (eglot--xref-make): Rework. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Simplify call to `eglot--xref-make'.
* eglot.el (eglot--temp-location-buffers): New variable. (eglot--handling-xrefs): New macro. (eglot--xref-make): Use eglot--temp-location-buffers. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Use eglot--handling-xrefs.
* eglot.el (eglot--temp-location-buffers): New variable. (eglot--handling-xrefs): New macro. (eglot--xref-make): Use eglot--temp-location-buffers. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Use eglot--handling-xrefs.
After an original implementation by Michael Livshin. Also close #127. * eglot.el (eglot--xref-make): Rework. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Simplify call to `eglot--xref-make'.
* eglot.el (eglot--temp-location-buffers): New variable. (eglot--handling-xrefs): New macro. (eglot--xref-make): Use eglot--temp-location-buffers. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Use eglot--handling-xrefs.
* eglot.el (eglot--temp-location-buffers): New variable. (eglot--handling-xrefs): New macro. (eglot--xref-make): Use eglot--temp-location-buffers. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Use eglot--handling-xrefs.
After an original implementation by Michael Livshin. Also close joaotavora/eglot#127. * eglot.el (eglot--xref-make): Rework. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Simplify call to `eglot--xref-make'.
… xref summary line collection * eglot.el (eglot--temp-location-buffers): New variable. (eglot--handling-xrefs): New macro. (eglot--xref-make): Use eglot--temp-location-buffers. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Use eglot--handling-xrefs.
After an original implementation by Michael Livshin. Also close joaotavora/eglot#127. * eglot.el (eglot--xref-make): Rework. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Simplify call to `eglot--xref-make'.
… xref summary line collection * eglot.el (eglot--temp-location-buffers): New variable. (eglot--handling-xrefs): New macro. (eglot--xref-make): Use eglot--temp-location-buffers. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Use eglot--handling-xrefs.
After an original implementation by Michael Livshin. Also close #127. * eglot.el (eglot--xref-make): Rework. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Simplify call to `eglot--xref-make'. #52: joaotavora/eglot#52 #127: joaotavora/eglot#127
* eglot.el (eglot--temp-location-buffers): New variable. (eglot--handling-xrefs): New macro. (eglot--xref-make): Use eglot--temp-location-buffers. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Use eglot--handling-xrefs. #52: joaotavora/eglot#52 #127: joaotavora/eglot#127
After an original implementation by Michael Livshin. Also close joaotavora/eglot#127. * eglot.el (eglot--xref-make): Rework. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Simplify call to `eglot--xref-make'. GitHub-reference: fix joaotavora/eglot#52
* eglot.el (eglot--temp-location-buffers): New variable. (eglot--handling-xrefs): New macro. (eglot--xref-make): Use eglot--temp-location-buffers. (xref-backend-definitions, xref-backend-references) (xref-backend-apropos): Use eglot--handling-xrefs. GitHub-reference: per joaotavora/eglot#52 GitHub-reference: per joaotavora/eglot#127
eglot:
lsp-mode:
Eglot also displays the definition as a reference.
The text was updated successfully, but these errors were encountered: