microsoft / microsoft/language-server-protocol

Find references from a given selected file (in explorer)

Open
#2,047 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request new request
Dominant language
TypeScript
Stars
13k
Forks
1k
Avg merge
6d 1h
Merged PRs (30d)
10

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing textDocument/references capability in the LSP specification and the HTML language server example described in this issue. The work is complete when the protocol defines file/references and a selected foo.css file can return index.html through a Find File References action.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.