Skip to content

Use "local" instead of "import" for local symbol monikers.#228

Merged
olafurpg merged 1 commit into
scip-code:mainfrom
olafurpg:kind-local
May 21, 2021
Merged

Use "local" instead of "import" for local symbol monikers.#228
olafurpg merged 1 commit into
scip-code:mainfrom
olafurpg:kind-local

Conversation

@olafurpg

Copy link
Copy Markdown
Contributor

Previously, lsif-java used "kind: import" for local symbols. The
Sourcegraph backend stores all import/export monikers in the postgres
database. This change make the kind "local" so that they don't get
stored in the Postgres backed, reducing disk usage.

Previously, lsif-java used "kind: import" for local symbols. The
Sourcegraph backend stores all import/export monikers in the postgres
database. This change make the kind "local" so that they don't get
stored in the Postgres backed, reducing disk usage.
val docPath = AbsolutePath
.of(Paths.get(doc.getUri), sourceroot)
.toRealPath()
.normalize()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This change was necessary to get the snapshots testing passing on macos. We don't run the CI on macos, but might want to reconsider that if we hit on more linux/macos issues like this.

│ │ │ │ │
v v v │ v v
╭────────────╮ ╭───────────┴──────╮ ╭───────────────────────────────────╮
local local0│ │range(50) 3:34 'n'│ │hoverResult(54) ```java\nint n\n```│

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You can ignore the rest of the diff in this file, the most interesting bit is local local0 to indicate we now use the local kind for local symbols

@olafurpg olafurpg merged commit 99b6f0b into scip-code:main May 21, 2021
@olafurpg olafurpg deleted the kind-local branch May 21, 2021 14:44
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.

2 participants