update workspace creation to append workspace name

This commit is contained in:
Tristan Michael 2026-04-05 07:04:40 -07:00
parent f8ebd2ce9e
commit ca0a5c8ab3

View file

@ -28,7 +28,9 @@
async function handleCreate() {
if (!name.trim() || !path.trim()) return;
await app.addWorkspace(name.trim(), path.trim());
const sep = path.includes("\\") ? "\\" : "/";
const fullPath = path.trimEnd().replace(/[\\/]+$/, "") + sep + name.trim();
await app.addWorkspace(name.trim(), fullPath);
}
async function handleOpen() {