Skip to content

Implement referencesProvider #336

Closed

Description

@renkun-ken

The references request is sent from the client to the server to resolve project-wide references for the symbol denoted by the given text document position.

The referencesProvider could be implemented to have the following behavior:

  1. If the workspace is an R package, then find references in all R documents; otherwise, find references in open documents.
  2. Get the token at the requested position.
  3. Use the approach of definition provider to find definition of the token.
  4. Find all symbols in the documents and go-to-definition of each symbol.
  5. All symbols that go to the same definition will be included as a reference of the original token.

Activity

  1. randy3k commented on Sep 16, 2020

    @randy3k
    Member

    It sounds a valid approach. :+1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions