mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-06 08:25:41 -08:00
Trim comments and docs to what the code needs
AI Assisted
This commit is contained in:
1 parent
eba3c3bf0c
commit
0bd721fc27
33 files changed
+292
-392
No files matched your search
@@ -78,7 +78,7 @@ function isFolder(p) {
|
||||
|
||||
// Where the picker opens: beside the last folder added, else the original, else
|
||||
// `fallback`. A start deleted on disk walks up to its nearest folder still there,
|
||||
// since a picker cannot open at a missing folder and would fail as unavailable.
|
||||
// since a picker cannot open at a missing folder.
|
||||
export function pickerStart(ws, fallback) {
|
||||
const added = ws.folders.filter((f) => !f.original);
|
||||
const wanted = added.length ? path.dirname(added[added.length - 1].path) : ws.folders[0]?.path || fallback;
|
||||
|
||||
Reference in new issue
Block a user