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 GitHub
parent 2092fb1a50
commit 548d3b48a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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