Merge pull request #29 from SteelDynamite/workspace-folder-root

update workspace creation to append workspace name
This commit is contained in:
SteelDynamite 2026-04-05 07:05:18 -07:00 committed by GitHub
commit 4670cffe69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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() {