Skip to content

Conversation

@nkomonen-amazon
Copy link
Contributor

Sometimes users MAY modify the LSP cache dir for reasons like development.

We have a feature to clear cache, but right now it does not clear the LSP cache.
Now we will additionally clear the LSP cache when the user runs the command Amazon Q: Clear extension cache


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sometimes users MAY modify the LSP cache dir for reasons like development,
and when we clear all user cache we want to ensure the LSP cache is not
corrupted.

So when the user calls the clear cache command from the command palette it will
also clear the LSP cache too.

Signed-off-by: nkomonen-amazon <[email protected]>
@nkomonen-amazon nkomonen-amazon requested a review from a team as a code owner May 22, 2025 15:30
@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@nkomonen-amazon nkomonen-amazon changed the title refactor(clearCache): Delete the LSP cache dir refactor(clearcache): Delete the LSP cache dir May 22, 2025
@nkomonen-amazon nkomonen-amazon merged commit c17efa1 into aws:master May 22, 2025
36 of 38 checks passed
@nkomonen-amazon nkomonen-amazon deleted the clearCacheLS branch May 22, 2025 17:40
tomcat323 pushed a commit to tomcat323/aws-toolkit-vscode that referenced this pull request May 30, 2025
Sometimes users MAY modify the LSP cache dir for reasons like
development.

We have a feature to clear cache, but right now it does not clear the
LSP cache.
Now we will additionally clear the LSP cache when the user runs the
command `Amazon Q: Clear extension cache`

---

- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.

Signed-off-by: nkomonen-amazon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants