| 28 | let inProgressProjectFolderSearch: Promise<void> | undefined; |
| 29 | |
| 30 | export function clearCaches(): void { |
| 31 | // TODO(dantup): shared is not supposed to have state. A recent test issue was because |
| 32 | // this function was called in the test version and not the extension. |
| 33 | // Perhaps it's time to just drop the shared folder now the legacy DAPs are (mostly) gone. |
| 34 | inProgressProjectFolderSearch = undefined; |
| 35 | projectFolderCache.clear(); |
| 36 | cachedTestCapabilities.clear(); |
| 37 | } |
| 38 | |
| 39 | // The extension kind is declared as Workspace, but VS Code will return UI in the |
| 40 | // case that there is no remote extension host. |