dsh-code-server-app 0.3.39 → 0.3.41
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 +14 -2
- package/assets/extensions/dshcs-editor-bridge/webview/thread.js +9 -9
- package/lib/index.js +28 -18
- 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.13",
|
|
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-
|
|
14
|
+
生成时间:2026-09-13T13:12:04.600Z
|
|
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 界面一致)
|
|
@@ -66,8 +66,20 @@ function App() {
|
|
|
66
66
|
};
|
|
67
67
|
window.addEventListener('message', onMessage);
|
|
68
68
|
// 面板脚本自己出错也要说出来:静默空白是最难查的一种失败。
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
// **但"ResizeObserver loop completed with undelivered notifications"不是脚本错误**(0.3.41):
|
|
70
|
+
// 那是 Chromium 在布局收敛时投递的良性告警(官方渲染器的视口高亮/折叠行都会触发它),
|
|
71
|
+
// 浏览器自己会重试,重试后一帧内就恢复。把它当成"面板脚本出错"会误导用户去查一个不存在的问题。
|
|
72
|
+
const BENIGN = /ResizeObserver loop/i;
|
|
73
|
+
const onError = (event) => {
|
|
74
|
+
const message = event && event.message ? String(event.message) : '未知';
|
|
75
|
+
if (BENIGN.test(message)) return;
|
|
76
|
+
setScriptError(`面板脚本出错:${message}`);
|
|
77
|
+
};
|
|
78
|
+
const onRejection = (event) => {
|
|
79
|
+
const reason = event && event.reason ? String(event.reason) : '未知';
|
|
80
|
+
if (BENIGN.test(reason)) return;
|
|
81
|
+
setScriptError(`面板脚本出错:${reason}`);
|
|
82
|
+
};
|
|
71
83
|
window.addEventListener('error', onError);
|
|
72
84
|
window.addEventListener('unhandledrejection', onRejection);
|
|
73
85
|
vscode.postMessage({ type: 'ready' });
|