Skip to content

Implement referencesProvider#338

Merged
renkun-ken merged 7 commits intomasterfrom
references
Oct 2, 2020
Merged

Implement referencesProvider#338
renkun-ken merged 7 commits intomasterfrom
references

Conversation

@renkun-ken
Copy link
Copy Markdown
Member

Close #336

This PR implements a simple referencesProvider based on the current definitionProvider.

  1. Find the definition of the requested token.
  2. Find all symbols with the same text of the requested token in all documents in workspace (R/*.R for package or otherwise open R documents in non-package workspace)
  3. Find the definition of each symbol in each document.
  4. Regard the symbol as a reference if its definition is identical to that of the requested token.

This PR also provides test cases for the referencesProvider (also based on test cases of the definitionProvider).

Kapture 2020-09-19 at 20 39 47

@randy3k
Copy link
Copy Markdown
Member

randy3k commented Sep 19, 2020

it seems that the newly added test cases have failed the coverage tests. I will take a look later today. By the way, thank you for working on it. 👍

@renkun-ken
Copy link
Copy Markdown
Member Author

There seems to be some difference between the coverage runner and build runners.

@randy3k
Copy link
Copy Markdown
Member

randy3k commented Oct 2, 2020

LGTM. Merge it at your will.

@renkun-ken renkun-ken merged commit 0381e70 into master Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement referencesProvider

2 participants