Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore: Make location fetching queries more uniform#64026

Merged
varungandhi-src merged 2 commits into
mainfrom
vg/refactor-3
Jul 24, 2024
Merged

chore: Make location fetching queries more uniform#64026
varungandhi-src merged 2 commits into
mainfrom
vg/refactor-3

Conversation

@varungandhi-src

@varungandhi-src varungandhi-src commented Jul 24, 2024

Copy link
Copy Markdown
Contributor

This patch changes the location querying code so that:

  1. We're populating structures corresponding to SCIP instead of LSIF
    (with "scheme" and "identifier" inside "MonikerData")
  2. Avoid repeatedly allocating a constant string 'scip' for the scheme
    only to throw it away later.
  3. Makes the two queries and their scanning code more similar for easier
    comparison. When I land precise usagesForSymbol, I will de-duplicate
    some of the scanning code between these two queries.

I have avoided renaming all of the local variables to avoid creating more noise.

Stepping stone for GRAPH-573

Test plan

Covered by existing tests.

@cla-bot cla-bot Bot added the cla-signed label Jul 24, 2024
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels Jul 24, 2024
Base automatically changed from vg/move-mocks-2 to main July 24, 2024 07:24
@varungandhi-src varungandhi-src enabled auto-merge (squash) July 24, 2024 07:28

@kritzcreek kritzcreek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following these %s's is tricky xD

Looks good to me.

@varungandhi-src varungandhi-src merged commit dc7da57 into main Jul 24, 2024
@varungandhi-src varungandhi-src deleted the vg/refactor-3 branch July 24, 2024 09:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants