in src/controller/commentCacheController.ts [152:178]
private async exportCommentsToDocument(
compiledComments: string,
uri: vscode.Uri
) {
if (compiledComments.length < 1) {
vscode.window.showInformationMessage("No comments to export.");
return false;
}
const document = await vscode.workspace.openTextDocument({
content: compiledComments,
language: "text",
});
vscode.window.showTextDocument(document, vscode.ViewColumn.Beside);
if (compiledComments) {
vscode.env.clipboard.writeText(compiledComments);
vscode.window.showInformationMessage("Comments copied to clipboard.");
}
const deleteCachedComments = await ExportView.getDeleteCommentsPreference();
if (deleteCachedComments) {
await this.deleteComments(uri);
}
return deleteCachedComments;
}