Make the default image filename more generic (#7479)

This commit is contained in:
Matt Rubens 2025-08-28 02:22:38 -04:00 committed by Shawn
parent ef88be25fc
commit cf8b15d9b0

View file

@ -64,7 +64,7 @@ export async function saveImage(dataUri: string) {
// Get workspace path or fallback to home directory
const workspacePath = getWorkspacePath()
const defaultPath = workspacePath || os.homedir()
const defaultFileName = `mermaid_diagram_${Date.now()}.${format}`
const defaultFileName = `img_${Date.now()}.${format}`
const defaultUri = vscode.Uri.file(path.join(defaultPath, defaultFileName))
// Show save dialog