dsh-better-workspace 0.36.12 → 0.36.13

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.36.12",
3
+ "version": "0.36.13",
4
4
  "main": "./src/index.js",
5
5
  "description": "侧边栏工作区树:按官方磁盘目录嵌套(官方 workspace-tree 语义),可选按名称中的 / 分组(默认关闭,设置里开启);新会话页的工作区选择器同树。Workspace tree for the DSH sidebar workspace list, nested by official disk folders with optional \"/\"-name grouping; the New Session workspace picker shows the same tree.",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-better-workspace",
3
- "version": "0.36.12",
3
+ "version": "0.36.13",
4
4
  "description": "侧边栏工作区树:按官方磁盘目录嵌套(官方 workspace-tree 语义),可选按名称中的 / 分组(默认关闭,设置里开启);新会话页的工作区选择器同树(同一份视图选项即时同步);添加工作区走官方目录流。Workspace tree for the DSH sidebar: disk-path nesting (official workspace-tree semantics), with optional \"/\"-name grouping (off by default), and the same tree in the New Session workspace picker; add-workspace rides the official directory flow.",
5
5
  "type": "module",
6
6
  "repository": {
package/src/client.js CHANGED
@@ -7432,7 +7432,11 @@ window.__ModuleLoader__.load({
7432
7432
 
7433
7433
  const rows = React.useMemo(() => {
7434
7434
  const out = []
7435
- const flatMode = groupBy !== 'workspace-tree'
7435
+ // ONE view rule for every tree-shaped surface (sidebar memo, new-group
7436
+ // chooser, this picker): "workspaces" keeps the name tree whenever a
7437
+ // name layer is on — only a purely disk flat view or 'flat' collapses.
7438
+ const flatMode = groupBy === 'flat'
7439
+ || (groupBy === 'workspace' && workspaceGroupMode === 'disk')
7436
7440
  const isFolded = (key) => folded[key] === true
7437
7441
  const toggle = (key) => {
7438
7442
  setFolded((prev) => {