dsh-ide-git 0.18.3 → 0.18.4
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 +1 -1
- package/package.json +1 -1
- package/src/client.js +16 -2
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-ide-git",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"description": "IDE 级 Git 操作面板:分支树 + 提交图谱 + 变更/暂存/提交 + 提交详情。装了 dsh-better-sidebar 时挂成它的原生 tab(右侧栏 + 底部工作台);没装时直接挂 DSH 原生右侧栏,单独安装即可用。JetBrains 风格 Git 工具窗口 for DeepSeek Harness.",
|
|
6
6
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ide-git",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"description": "DSH plugin: an IDE-grade Git tool window as a native dsh-better-sidebar tab — branch tree, commit graph, changes, commit details, JetBrains-style actions, in the right sidebar and the bottom panel. | DSH 插件:IDE 级 Git 工具窗口,以 dsh-better-sidebar 原生 Tab 挂载——分支树 / 提交图谱 / 变更与提交详情 / JetBrains 风格操作,右侧栏与底部面板双布局自适应。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
package/src/client.js
CHANGED
|
@@ -10747,8 +10747,13 @@ window.__ModuleLoader__.load({
|
|
|
10747
10747
|
return
|
|
10748
10748
|
}
|
|
10749
10749
|
pickAnchor.current = commit.hash
|
|
10750
|
-
|
|
10751
|
-
|
|
10750
|
+
/* Plain click only SELECTS (single-replace, the changes list's
|
|
10751
|
+
model): the detail view moved to DOUBLE-click. v0.18.3 updated the
|
|
10752
|
+
comment but left props.onSelect(commit) on this path, so single
|
|
10753
|
+
clicks kept yanking the pane away (user report) — the call is gone
|
|
10754
|
+
for real now; row highlight comes from the picked set, Enter is the
|
|
10755
|
+
keyboard twin of the double-click. */
|
|
10756
|
+
setPicks((previous) => previous.size === 1 && previous.has(commit.hash) === true ? previous : new Set([commit.hash]))
|
|
10752
10757
|
}
|
|
10753
10758
|
/* Ctrl+A selects the whole filtered list; everything else (Ctrl+C, Esc)
|
|
10754
10759
|
belongs to the Panel-level handler that owns the picked set. */
|
|
@@ -11821,6 +11826,15 @@ window.__ModuleLoader__.load({
|
|
|
11821
11826
|
copyValues(Array.from(pickedCommits))
|
|
11822
11827
|
return
|
|
11823
11828
|
}
|
|
11829
|
+
/* Enter = the keyboard twin of the double-click: open the picked
|
|
11830
|
+
commit's detail. Exactly one pick — with several, the intent is
|
|
11831
|
+
ambiguous, so Enter does nothing. */
|
|
11832
|
+
if (event.key === 'Enter' && pickedCommits.size === 1) {
|
|
11833
|
+
event.preventDefault()
|
|
11834
|
+
const hash = pickedCommits.values().next().value
|
|
11835
|
+
const commit = commits.find((entry) => entry.hash === hash)
|
|
11836
|
+
if (commit !== undefined) { void selectCommit(commit); return }
|
|
11837
|
+
}
|
|
11824
11838
|
if (event.key === 'Escape') setPickedCommits(new Set())
|
|
11825
11839
|
}
|
|
11826
11840
|
/* Branch-tree Delete: group the picked refs by kind and hand them to ONE
|