MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / clearCaches

Function clearCaches

src/shared/vscode/utils.ts:30–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28let inProgressProjectFolderSearch: Promise<void> | undefined;
29
30export 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.

Callers 1

activateFunction · 0.90

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected