Skip to content
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

Find references from a given selected file (in explorer) #2047

Open
angelozerr opened this issue Oct 21, 2024 · 4 comments
Open

Find references from a given selected file (in explorer) #2047

angelozerr opened this issue Oct 21, 2024 · 4 comments
Milestone

Comments

@angelozerr
Copy link
Contributor

angelozerr commented Oct 21, 2024

Today LSP specification support textDocument/references which works with symbol. It would be nice if LSP specification could provide a new LSP feature like file/references to find references from a file selected in the explorer.

Takes a sample with the HTML language server.

Given this HTML file:

<html>
	<link href="foo.css" />
</html>

It would be nice to open the contextual menu from the foo.css and have a Find File References menu

Image

to retrieve the index.html as find file references.

//cc @aeschli

@angelozerr
Copy link
Contributor Author

I think there are a lot of language which could use this new file/references feature like:

  • Java
  • XML
  • Template engine which uses include/import mechanism (XSL, Quarkus Qute template engine, etc)
  • other languages which supports textDocument/documentLink

//cc @fbricon @rgrunber @datho7561

@dbaeumer
Copy link
Member

I like that idea. I will move it to the spec repository .

@dbaeumer dbaeumer transferred this issue from microsoft/vscode-languageserver-node Oct 22, 2024
@dbaeumer dbaeumer added this to the Backlog milestone Oct 22, 2024
@dbaeumer
Copy link
Member

There is a custom implementation for this in VS Code for TypeScript.

@angelozerr
Copy link
Contributor Author

There is a custom implementation for this in VS Code for TypeScript.

Great! It is an another usecase. IMHO I think LSP should provide this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants