Skip to content

Commit

Permalink
Merge pull request #6996 from dbalek/dbalek/micronaut-symbol-remove
Browse files Browse the repository at this point in the history
Allow for removing Micronaut symbols from index.
  • Loading branch information
dbalek authored Jan 26, 2024
2 parents 2c6e3a7 + 9cd0d2b commit f84f064
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ protected void index(Indexable indexable, Parser.Result parserResult, Context co
if (initialize(cc)) {
try {
if (cc.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED).compareTo(JavaSource.Phase.ELEMENTS_RESOLVED) >= 0) {
List<SymbolLocation> symbols = scan(cc);
if (!symbols.isEmpty()) {
store(context.getIndexFolder(), indexable.getURL(), indexable.getRelativePath(), symbols);
}
store(context.getIndexFolder(), indexable.getURL(), indexable.getRelativePath(), scan(cc));
}
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
Expand Down

0 comments on commit f84f064

Please sign in to comment.