[optimization] reuse compilation unit cache to compute symbols for document #1119
Labels
for: vscode
something that is specific for VSCode
theme: performance
theme: spring index & symbols
type: enhancement
Milestone
The symbols for an open document are computed via the
SpringSymbolIndex
calling thecomputeSymbols
method of the indexers in order to compute symbols from the content of the edited document instead of the content of the file on disc.The
SpringIndexerJava
implements this using the same mechanism that is used for searching for symbols in files by creating its ownASTParser
, and do the parsing - while the reconciling is doing the same on dirty documents in parallel, but using theCompilationUnitCache
instead, which gets updated automatically on demand. To avoid the duplicated parsing logic, we should switch theSpringIndexerJava
to use theCompilationUnitCache
instead of doing its own parsing.The text was updated successfully, but these errors were encountered: