dsh-better-workspace 0.11.4 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-external/dsh-better-workspace",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "main": "./src/index.js",
5
5
  "description": "侧边栏工作区层级树:名称中的 / 即虚拟分组(web/前端 · web/后端),添加工作区的目录流附所属分组弹窗,重命名即时重排层级,可新建空分组。Hierarchy tree for the DSH sidebar workspace list.",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-better-workspace",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "description": "DSH web plugin: a hierarchical workspace tree for the sidebar. Workspace titles containing \"/\" group into virtual folders (web/前端 · web/后端); the add-workspace directory flow gains a parent-group popup; renames re-derive the tree; a new-folder button creates empty levels.",
5
5
  "type": "module",
6
6
  "repository": {
package/src/client.js CHANGED
@@ -3517,6 +3517,16 @@ window.__ModuleLoader__.load({
3517
3517
  */
3518
3518
  const browseDrives = { probed: false, probing: false, list: [] }
3519
3519
 
3520
+ /**
3521
+ * Run the one wire verb that actually puts a folder on disk and hand back
3522
+ * the created path. This is deliberately a module-level seam the smoke suite
3523
+ * drives for real: v0.11.4 folded the call into the success handler and
3524
+ * dropped it, so the form closed on a resolved `undefined` — no request, no
3525
+ * error, no folder. A string-level assertion cannot see that; calling it can.
3526
+ */
3527
+ const createFolderIn = (createDirectory, path, name) => Promise.resolve()
3528
+ .then(() => createDirectory(path, name))
3529
+
3520
3530
  function DirectoryBrowseDialog(props) {
3521
3531
  const { open, busy, listDirectory, createDirectory, onPick, onClose, t } = props
3522
3532
  const [listing, setListing] = React.useState(null)
@@ -3631,7 +3641,7 @@ window.__ModuleLoader__.load({
3631
3641
  if (name === '' || createBusy || currentPath === '') return
3632
3642
  setCreateBusy(true)
3633
3643
  setCreateError('')
3634
- Promise.resolve()
3644
+ createFolderIn(createDirectory, currentPath, name)
3635
3645
  .then((created) => {
3636
3646
  setCreateBusy(false)
3637
3647
  setCreating(false)