spring-projects / spring-projects/spring-tools
`workspace/symbols` sometimes returns empty results
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 983
- Forks
- 240
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 7
Description
Describe the bug
workspace/symbols sometimes returns empty results. Leading to empty list in beans/mappings view.
When project is added/removed or classpaths changes, we re-fetch static beans/mappings from workspace symbols as below.
const beans = await stsApi.client.sendRequest("workspace/symbol", {"query": "@+"}) as any[];
const mappings = await stsApi.client.sendRequest("workspace/symbol", {"query": "@/"}) as any[];
console.log({beans, mappings});
To Reproduce
As described, sometimes occur. So I try and print the responses as below, catching one scene.
Sample
with vscode spring tools v1.38.0

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two stsApi.client.sendRequest calls for workspace/symbol with queries "@+" and "@/" while changing the project or classpaths, then inspect when the responses are empty. Done means workspace symbols consistently return the expected beans and mappings after those changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, vscode
- Domain
- developer-experience, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100