in src/controller/commentCacheController.ts [74:89]
async deleteComments(uri: vscode.Uri) {
this.directoryController.checkUri(uri);
const { guid, version } = await this.directoryController.splitUri(uri);
const rootPath = await this.directoryController.getRootFolderPath();
const comments = await this.cache.getFromCache([guid, version]);
for (const [filepath] of Object.entries(comments)) {
// Delete the file in cache.
await this.cache.removeFromCache([guid, version, filepath]);
// Update the file's decorator.
const commentUri = vscode.Uri.file(
path.join(rootPath, guid, version, filepath)
);
this.fileDecoratorController.loadFileDecoratorByUri(commentUri);
}
}