dsh-code-server-app 0.3.43 → 0.3.44
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/assets/extensions/dshcs-editor-bridge/package.json +1 -1
- package/assets/extensions/dshcs-editor-bridge/webview/THIRD-PARTY.md +1 -1
- package/assets/extensions/dshcs-editor-bridge/webview/src/app.jsx +11 -3
- package/assets/extensions/dshcs-editor-bridge/webview/thread.js +14 -14
- package/package.json +1 -1
- package/vendor/VENDOR.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dshcs-editor-bridge",
|
|
3
3
|
"displayName": "DSH Editor Bridge",
|
|
4
4
|
"description": "只读地把编辑器状态(未保存缓冲区、诊断、活动选区)提供给 DSH;右键提问打开 DSH 页面里的悬浮对话对话框(0.2.5;老宿主退回编辑器面板),正文/思考/上下文都用 DSH 官方渲染器,并可就地回答授权请求。由 dsh-code-server-app 插件安装,可禁用。",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.15",
|
|
6
6
|
"publisher": "dsh-code-server-app",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"private": true,
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
| react | 18.3.1 | MIT |
|
|
12
12
|
| react-dom | 18.3.1 | MIT |
|
|
13
13
|
|
|
14
|
-
生成时间:2026-09-13T13:
|
|
14
|
+
生成时间:2026-09-13T13:24:35.092Z
|
|
15
15
|
渲染器:@deepseek-ai/dsh-client-ui-primitives@0.1.5-rc.2(DSH 部署的界面版本:0.1.5-rc.2)
|
|
16
16
|
设计令牌:@deepseek-ai/dsh-client-ui-theme@0.1.5-rc.2(11 段)
|
|
17
17
|
KaTeX:已打包(公式排版与 DSH 界面一致)
|
|
@@ -133,10 +133,18 @@ function App() {
|
|
|
133
133
|
if (node !== null && stickRef.current) node.scrollTop = node.scrollHeight;
|
|
134
134
|
}, [view.entries]);
|
|
135
135
|
|
|
136
|
-
//
|
|
136
|
+
// 任何一趟宿主状态回来都解除"发送中"的按钮锁(0.3.44)。
|
|
137
|
+
// 老写法盯着 `view.status` 变化 —— 而对话框形态下宿主回的 status **一直是 'idle'**,
|
|
138
|
+
// 于是那个 effect 永远不再触发:第一次发送之后按钮就永久变灰(实测"只能发送一次,没法追问")。
|
|
137
139
|
useEffect(() => {
|
|
138
|
-
|
|
139
|
-
}, [view
|
|
140
|
+
setSending(false);
|
|
141
|
+
}, [view]);
|
|
142
|
+
// 兜底:万一某一趟状态没回来(宿主卡住/请求失败),最多 15 秒也把锁解开。
|
|
143
|
+
useEffect(() => {
|
|
144
|
+
if (sending !== true) return undefined;
|
|
145
|
+
const timer = window.setTimeout(() => setSending(false), 15000);
|
|
146
|
+
return () => window.clearTimeout(timer);
|
|
147
|
+
}, [sending]);
|
|
140
148
|
|
|
141
149
|
const onScroll = () => {
|
|
142
150
|
const node = logRef.current;
|