Skip to content

Commit

Permalink
Allow for removing Micronaut symbols from index.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalek committed Jan 25, 2024
1 parent 2100f39 commit 9cd0d2b
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 9cd0d2b

Please sign in to comment.