Skip to content

First pass external dependency hovers #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 12, 2020
Merged

Conversation

Strum355
Copy link
Contributor

No description provided.

@Strum355 Strum355 added lib/com.sun.source For issues/PRs regarding the com.sun.source based lsif-java lsif-java team/code-intelligence labels Nov 11, 2020
@Strum355 Strum355 added this to the 3.22 milestone Nov 11, 2020
@Strum355 Strum355 requested a review from a team November 11, 2020 00:34
@Strum355 Strum355 linked an issue Nov 12, 2020 that may be closed by this pull request
Fetches a FileObject from source jar and walks the AST, comparing based on the stringified symbols (seems to work perfectly!)
Returns the fetched javadoc comment and the tree element to be used for building the signature. May do this in the doc visitor instead of indexing visitor but w/e
Added ExternalDefinitionMeta, similar to DefinitionMeta but without a field for the definition range id and definition resultset id
FileCollector passes the inferred sources to DocumentIndexers
IndexingVisitor updated to not fully bail when finding refRange,defRange,defPath triplet, so we can use the refRange for emitting external hover
Extracting stringifying JCMethodDecl so far, as used both when indexing local code and external definitions
Operation has a tendency to fail for obscure reasons (package name doesnt match path etc???) so we swallow exceptions and just fail for that file. This definitely needs to be improved
Saves all the overhead that our custom one needs for crawling the passed files
@Strum355 Strum355 merged commit 2afea5a into nsc/comsunsource Nov 12, 2020
@Strum355 Strum355 deleted the nsc/ext-dep-hover branch November 12, 2020 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib/com.sun.source For issues/PRs regarding the com.sun.source based lsif-java lsif-java team/code-intelligence
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hovers for stdlib and cross repo symbols
1 participant