dsh-remote-vs 0.26.0 → 0.28.0
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/README.en.md +112 -28
- package/README.md +84 -25
- package/THIRD-PARTY-NOTICES.md +7 -2
- package/lib/client.js +1237 -254
- package/lib/index.js +821 -17
- package/lib/types/changes/recorder.d.ts +119 -2
- package/lib/types/client/CodeEditor.d.ts +29 -0
- package/lib/types/client/OutlinePanel.d.ts +22 -0
- package/lib/types/client/ProcessesSection.d.ts +19 -0
- package/lib/types/client/api.d.ts +22 -2
- package/lib/types/client/blame-model.d.ts +77 -0
- package/lib/types/client/changes/apply-failure.d.ts +41 -0
- package/lib/types/client/changes/block-confirm.d.ts +97 -0
- package/lib/types/client/changes/diff-outcome.d.ts +56 -0
- package/lib/types/client/changes/freshness.d.ts +51 -0
- package/lib/types/client/changes/model.d.ts +19 -1
- package/lib/types/client/changes/session-diff.d.ts +100 -0
- package/lib/types/client/changes/staleness.d.ts +98 -0
- package/lib/types/client/changes/turn-reverted.d.ts +82 -0
- package/lib/types/client/changes/turn-view.d.ts +131 -0
- package/lib/types/client/changes/undo-affordance.d.ts +44 -10
- package/lib/types/client/changes/undo-target.d.ts +12 -0
- package/lib/types/client/i18n.d.ts +1 -1
- package/lib/types/client/outline-model.d.ts +59 -0
- package/lib/types/client/scm/actions.d.ts +12 -1
- package/lib/types/client/store.d.ts +109 -1
- package/lib/types/client/vsc/blame.d.ts +19 -0
- package/lib/types/client/vsc/change-marks.d.ts +21 -0
- package/lib/types/client/vsc/kit.d.ts +0 -2
- package/lib/types/client/vsc/preview-document.d.ts +46 -0
- package/lib/types/client/vsc/preview-model.d.ts +31 -0
- package/lib/types/client/vsc/preview-services.d.ts +24 -0
- package/lib/types/git-ops.d.ts +18 -0
- package/lib/types/processes.d.ts +43 -0
- package/lib/types/protocol.d.ts +133 -1
- package/package.json +2 -1
- package/src/changes/recorder.ts +851 -8
- package/src/client/CodeEditor.tsx +86 -4
- package/src/client/EditorPane.tsx +581 -41
- package/src/client/MonitorView.tsx +16 -5
- package/src/client/OutlinePanel.tsx +287 -0
- package/src/client/ProcessesSection.tsx +292 -0
- package/src/client/api.ts +38 -3
- package/src/client/blame-model.ts +242 -0
- package/src/client/changes/ChangesDock.tsx +539 -54
- package/src/client/changes/apply-failure.ts +73 -0
- package/src/client/changes/block-confirm.ts +180 -0
- package/src/client/changes/changes.css +45 -0
- package/src/client/changes/diff-outcome.ts +97 -0
- package/src/client/changes/freshness.ts +68 -0
- package/src/client/changes/model.ts +56 -1
- package/src/client/changes/session-diff.ts +187 -0
- package/src/client/changes/staleness.ts +148 -0
- package/src/client/changes/turn-reverted.ts +254 -0
- package/src/client/changes/turn-view.ts +195 -0
- package/src/client/changes/undo-affordance.ts +295 -63
- package/src/client/changes/undo-target.ts +12 -0
- package/src/client/i18n.ts +294 -2
- package/src/client/index.tsx +4 -0
- package/src/client/outline-model.ts +775 -0
- package/src/client/scm/DiffView.tsx +32 -13
- package/src/client/scm/HistoryPanel.tsx +38 -1
- package/src/client/scm/actions.ts +55 -2
- package/src/client/store.tsx +446 -21
- package/src/client/vsc/blame.ts +147 -0
- package/src/client/vsc/change-marks.ts +21 -0
- package/src/client/vsc/kit.tsx +3 -11
- package/src/client/vsc/preview-document.tsx +326 -0
- package/src/client/vsc/preview-model.ts +216 -0
- package/src/client/vsc/preview-services.ts +118 -0
- package/src/client/vsc/vsc.css +965 -39
- package/src/git-ops.ts +34 -0
- package/src/processes.ts +177 -0
- package/src/protocol.ts +138 -1
- package/src/routes.ts +138 -9
package/src/client/i18n.ts
CHANGED
|
@@ -79,11 +79,55 @@ export const DYNAMIC_KEYS = [
|
|
|
79
79
|
'editor.crumbLabel',
|
|
80
80
|
'editor.crumbUp',
|
|
81
81
|
'editor.crumbEmpty',
|
|
82
|
+
// Outline kind labels are chosen through a `kind` → key lookup in
|
|
83
|
+
// `OutlinePanel.tsx`, not a literal t() call.
|
|
84
|
+
'outline.kind.class',
|
|
85
|
+
'outline.kind.interface',
|
|
86
|
+
'outline.kind.struct',
|
|
87
|
+
'outline.kind.enum',
|
|
88
|
+
'outline.kind.trait',
|
|
89
|
+
'outline.kind.impl',
|
|
90
|
+
'outline.kind.namespace',
|
|
91
|
+
'outline.kind.module',
|
|
92
|
+
'outline.kind.function',
|
|
93
|
+
'outline.kind.method',
|
|
94
|
+
'outline.kind.constructor',
|
|
95
|
+
'outline.kind.field',
|
|
96
|
+
'outline.kind.variable',
|
|
97
|
+
'outline.kind.type',
|
|
98
|
+
'outline.kind.macro',
|
|
99
|
+
// Chosen by preview kind at runtime in preview-document.tsx.
|
|
100
|
+
'preview.officeUnavailableTitle',
|
|
101
|
+
'preview.unavailableTitle',
|
|
102
|
+
'preview.officeUnavailableHint',
|
|
103
|
+
'preview.unavailableHint',
|
|
82
104
|
'editor.imageHint',
|
|
83
105
|
'editor.imageFitHint',
|
|
84
106
|
'editor.imageFailedHint',
|
|
85
107
|
'editor.imageTooLargeTitle',
|
|
86
108
|
'editor.imageTooLargeHint',
|
|
109
|
+
// Chosen through the `NOTICE_KEY` table in `changes/diff-outcome.ts`: the
|
|
110
|
+
// panel renders "why this diff has no (or only partial) marks" from a
|
|
111
|
+
// resolved notice value, so the scanner sees no literal t() call to count.
|
|
112
|
+
'changes.diffTruncated',
|
|
113
|
+
'changes.diffOversized',
|
|
114
|
+
'changes.diffBinary',
|
|
115
|
+
'changes.diffMissing',
|
|
116
|
+
'changes.diffEmpty',
|
|
117
|
+
// Chosen through `turnOutcomeOf` in `changes/turn-view.ts`: the panel resolves
|
|
118
|
+
// "why this turn row painted nothing / fell back" from a notice value, so the
|
|
119
|
+
// scanner sees no literal t() call for these.
|
|
120
|
+
'changes.turnStatsOnly',
|
|
121
|
+
'changes.turnUnavailable',
|
|
122
|
+
'changes.turnStaleFallback',
|
|
123
|
+
// Chosen through the `FAILURE_KEY` table in `changes/apply-failure.ts`: a
|
|
124
|
+
// revert failure is classified from the stderr text, then translated.
|
|
125
|
+
'changes.applyContextMoved',
|
|
126
|
+
'changes.applyPathMissing',
|
|
127
|
+
'changes.applyPermission',
|
|
128
|
+
'changes.applyOwnership',
|
|
129
|
+
'changes.applyCorrupt',
|
|
130
|
+
'changes.applyOther',
|
|
87
131
|
] as const
|
|
88
132
|
|
|
89
133
|
const zh: Record<string, string> = {
|
|
@@ -592,6 +636,35 @@ const zh: Record<string, string> = {
|
|
|
592
636
|
'history.diffToolbar': '补丁工具',
|
|
593
637
|
'editor.preview': '预览',
|
|
594
638
|
'editor.source': '源码',
|
|
639
|
+
'preview.converting': '正在由远端 LibreOffice 转换为 PDF…',
|
|
640
|
+
'preview.convertingHint': '由宿主 LibreOffice 转换,首次打开通常需要几秒。',
|
|
641
|
+
'preview.failedTitle': '无法预览这个文件',
|
|
642
|
+
'preview.failedHint': '文件可能已损坏、格式不受支持,或转换失败。',
|
|
643
|
+
'preview.tooLargeTitle': '文件过大,无法预览',
|
|
644
|
+
'preview.tooLargeHint': '超出宿主或插件的读取上限;可以用原生应用打开它。',
|
|
645
|
+
'preview.unavailableTitle': '当前没有可用的预览服务',
|
|
646
|
+
'preview.unavailableHint': '宿主没有挂载所需的文件/Office 服务,插件会退回自己的下载通道。',
|
|
647
|
+
'preview.notFoundTitle': '文件已不在磁盘上',
|
|
648
|
+
'preview.notFoundHint': '它可能已被删除、改名或移出工作区。',
|
|
649
|
+
'preview.remoteTitle': '远端文件无法预览',
|
|
650
|
+
'preview.remoteHint': '宿主拒绝了这条字节读取路径。',
|
|
651
|
+
'preview.officeUnavailableTitle': '远端没有 LibreOffice',
|
|
652
|
+
'preview.officeUnavailableHint': '宿主 officeKit 不可用,远端也没有安装 LibreOffice,因此无法转换这个文档。可在 Host 安装 LibreOffice Kit:npm install @deepseek-ai/libreoffice-kit@latest;或在远端安装 libreoffice。',
|
|
653
|
+
'preview.truncated': '文件过大,只预览了已加载的部分。',
|
|
654
|
+
'preview.tableTruncated': '数据超过 {rows} 行 / {cells} 个单元格,只解析了前面部分。',
|
|
655
|
+
'preview.tableHiddenRows': '只显示了前 {shown} 行,还有 {rest} 行未显示。',
|
|
656
|
+
'preview.tableHiddenColumns': '只显示了前 {shown} 列,还有 {rest} 列未显示。',
|
|
657
|
+
'preview.tableEmptyTitle': '空表格',
|
|
658
|
+
'preview.tableEmptyHint': '这个文件没有可显示的行。',
|
|
659
|
+
'preview.documentHint': '翻页 / 缩放由浏览器内置阅读器提供',
|
|
660
|
+
'preview.mediaUnsupported': '浏览器不支持这个容器或编码',
|
|
661
|
+
'preview.svgFailed': 'SVG 无法渲染',
|
|
662
|
+
'preview.svgFailedHint': '文件不是合法的 SVG。切到源码可以查看并修正标记。',
|
|
663
|
+
'preview.svgHint': 'SVG 以图片方式渲染:脚本不会执行。',
|
|
664
|
+
'preview.copyCode': '复制代码',
|
|
665
|
+
'preview.copied': '已复制',
|
|
666
|
+
'preview.footnotes': '脚注',
|
|
667
|
+
'common.retry': '重试',
|
|
595
668
|
'editor.imageFailed': '图片读取失败。',
|
|
596
669
|
'editor.closeDirty': '有未保存的修改',
|
|
597
670
|
'editor.discardClose': '放弃并关闭',
|
|
@@ -622,6 +695,34 @@ const zh: Record<string, string> = {
|
|
|
622
695
|
'editor.tabsLabel': '打开的编辑器',
|
|
623
696
|
'editor.diffSuffix': '(差异)',
|
|
624
697
|
'editor.wrap': '自动换行',
|
|
698
|
+
'editor.blameToggle': '行内 blame(作者 + 时间,点击查看提交)',
|
|
699
|
+
'editor.blameOpenCaret': '打开光标所在行的提交',
|
|
700
|
+
'editor.fileHistory': '文件历史',
|
|
701
|
+
'editor.fileHistoryEmpty': '这个文件没有提交历史。',
|
|
702
|
+
'editor.outline': '大纲',
|
|
703
|
+
'outline.title': '文件大纲',
|
|
704
|
+
'outline.placeholder': '筛选符号…',
|
|
705
|
+
'outline.hint': '↑↓ 选择 · Enter 跳转 · Esc 关闭',
|
|
706
|
+
'outline.empty': '这个文件里没有可识别的符号。',
|
|
707
|
+
'outline.noResults': '没有匹配的符号。',
|
|
708
|
+
'outline.more': '结果已截断,共匹配 {total} 条,只显示前 {count} 条;继续输入可以缩小范围。',
|
|
709
|
+
'outline.truncated': '文件符号太多,只列出前 {count} 个。',
|
|
710
|
+
'outline.guessed': '未识别该文件的语言:大纲按缩进与关键字猜测,可能不准确。',
|
|
711
|
+
'outline.kind.class': '类',
|
|
712
|
+
'outline.kind.interface': '接口',
|
|
713
|
+
'outline.kind.struct': '结构',
|
|
714
|
+
'outline.kind.enum': '枚举',
|
|
715
|
+
'outline.kind.trait': 'trait',
|
|
716
|
+
'outline.kind.impl': 'impl',
|
|
717
|
+
'outline.kind.namespace': '命名空间',
|
|
718
|
+
'outline.kind.module': '模块',
|
|
719
|
+
'outline.kind.function': '函数',
|
|
720
|
+
'outline.kind.method': '方法',
|
|
721
|
+
'outline.kind.constructor': '构造',
|
|
722
|
+
'outline.kind.field': '字段',
|
|
723
|
+
'outline.kind.variable': '变量',
|
|
724
|
+
'outline.kind.type': '类型',
|
|
725
|
+
'outline.kind.macro': '宏',
|
|
625
726
|
'editor.fontSmaller': '减小字号(Ctrl+滚轮)',
|
|
626
727
|
'editor.fontLarger': '增大字号(Ctrl+滚轮)',
|
|
627
728
|
'editor.openInCenter': '在会话区全宽打开',
|
|
@@ -673,6 +774,23 @@ const zh: Record<string, string> = {
|
|
|
673
774
|
'git.notARepo': '当前远端工作区不是 git 仓库。',
|
|
674
775
|
// -- session change panel (above the composer)
|
|
675
776
|
'changes.title': '本次改动',
|
|
777
|
+
'changes.scopeLabel': '改动范围',
|
|
778
|
+
'changes.scopeSession': '会话累计',
|
|
779
|
+
'changes.scopeTurn': '本轮',
|
|
780
|
+
'changes.scopeSessionHint': '以会话起点为基线,列出这个会话改过的全部文件',
|
|
781
|
+
'changes.scopeTurnHint': '只看最近一个已完成轮次改了什么(更早的轮次不计入)',
|
|
782
|
+
'changes.turnTitle': '本轮 #{turn} · {time}',
|
|
783
|
+
'changes.turnEmpty': '本轮没有改动文件。',
|
|
784
|
+
'changes.turnStatsOnly': '本轮只有增删统计:改动内容超出 Host 的内存预算,没有块标记也不能撤销(会话累计视图不受影响)。',
|
|
785
|
+
'changes.turnUnavailable': '本轮没有可显示的改动内容',
|
|
786
|
+
'changes.turnStaleFallback': '该文件在本轮之后又被修改,已回退为会话累计视图。',
|
|
787
|
+
'changes.turnMarksStale': '本轮改动内容已过期(文件在本轮之后又被修改),标记已清除。',
|
|
788
|
+
'changes.turnDiffDisabled': '本轮视图只打开文件;并排差异请切回会话累计',
|
|
789
|
+
'changes.turnPending': '本轮的新文件扫描还没落地:同一轮会被重新统计,列表可能继续变长。',
|
|
790
|
+
'changes.turnPartial': '本轮视图不完整:部分文件无法归属(上一轮内容未知、超出文件上限,或上一轮扫描未落定),已略过。',
|
|
791
|
+
'changes.turnRevertedHidden': '本轮已撤销 {n} 个文件的改动,已从列表隐藏。',
|
|
792
|
+
'changes.turnRevertedAll': '本轮改动已全部撤销。',
|
|
793
|
+
'changes.turnRevertNotPossible': '本轮只保留反向补丁,不提供「撤销新建」;要删除这个新文件请在会话累计视图撤销,或到源代码管理面板处理。',
|
|
676
794
|
'changes.onlyUnreviewed': '只看未审阅',
|
|
677
795
|
'changes.nextUnreviewed': '下一个未审阅',
|
|
678
796
|
'changes.allReviewed': '全部已审阅',
|
|
@@ -713,7 +831,7 @@ const zh: Record<string, string> = {
|
|
|
713
831
|
'changes.navLabel': '改动跳转',
|
|
714
832
|
'changes.refresh': '重新统计改动',
|
|
715
833
|
'changes.stale': '位置已过期',
|
|
716
|
-
'changes.staleHint': '
|
|
834
|
+
'changes.staleHint': '改动列表或编辑器内容已经变了,屏幕上这批标记可能不再准确。点列表里的文件重新计算。',
|
|
717
835
|
'changes.noWorkspace': '找不到该主机对应的工作区,无法打开文件。',
|
|
718
836
|
// -- 编辑器 gutter 标记与删除 chip(vsc/change-marks.ts 的 title / aria-label)
|
|
719
837
|
'changes.markAdd': '新增行',
|
|
@@ -730,6 +848,27 @@ const zh: Record<string, string> = {
|
|
|
730
848
|
'changes.undoNoContext': '找不到这处改动所属的主机与仓库,无法撤销。',
|
|
731
849
|
'changes.undoConflict': '这处改动的上下文已经变了,远端拒绝了撤销(文件未被修改)。',
|
|
732
850
|
'changes.undoMissing': '这处改动没有可用的补丁内容,无法撤销。',
|
|
851
|
+
// -- 撤销失败的原因分类(git apply 的 stderr → 可操作的四种说法)
|
|
852
|
+
'changes.applyContextMoved': '远端文件的内容已经变了,补丁对不上(文件未被修改)。',
|
|
853
|
+
'changes.applyPathMissing': '补丁指向的文件在远端不见了(可能已被删除或重命名)。',
|
|
854
|
+
'changes.applyPermission': '远端拒绝写入(权限不足或只读文件系统)。',
|
|
855
|
+
'changes.applyOwnership': '远端仓库的所有者与当前用户不一致,git 拒绝操作:请配置 safe.directory 或修正目录所有权。',
|
|
856
|
+
'changes.applyCorrupt': '补丁内容不完整或已损坏,重新打开该文件取一次改动内容后再试。',
|
|
857
|
+
'changes.applyOther': '远端拒绝了这次补丁,原因见后面的原始信息。',
|
|
858
|
+
// -- 悬浮栏的第二个动作:块级「确认保留」(纯本地笔记)
|
|
859
|
+
'changes.actions': '改动操作',
|
|
860
|
+
'changes.confirmBlock': '确认保留',
|
|
861
|
+
'changes.confirmedBlock': '已确认保留',
|
|
862
|
+
// -- 点开一行时 diff 的五种可见结论
|
|
863
|
+
'changes.diffTruncated': '改动内容被远端字节上限扣下,这次比较不完整(可能整篇都算改动),因此不标改动、也不能撤销。',
|
|
864
|
+
'changes.diffOversized': '文件太大,Host 扣下了内容,不做行级比较(没有改动标记、也不能撤销);可以打开文件自行查看。',
|
|
865
|
+
'changes.diffBinary': '二进制文件没有可显示的文本差异,编辑器里不会画改动标记。',
|
|
866
|
+
'changes.diffMissing': '远端读不到这个文件的内容(可能已被删除或无法读取),没有可显示的改动。',
|
|
867
|
+
'changes.diffEmpty': '这个文件现在没有可显示的差异(改动可能已经被撤销)。',
|
|
868
|
+
// -- 面板直达差异(账本基线的只读并排 diff)
|
|
869
|
+
'changes.menuViewDiff': '查看差异(只读)',
|
|
870
|
+
'changes.diffNotPossible': '二进制或过大,没有可显示的差异',
|
|
871
|
+
'changes.diffTabLabel': '会话改动',
|
|
733
872
|
// -- 连接状态与断线降级
|
|
734
873
|
'connection.ok': '连接正常',
|
|
735
874
|
'connection.error': '连接异常',
|
|
@@ -828,6 +967,35 @@ const zh: Record<string, string> = {
|
|
|
828
967
|
'monitor.interval10': '10 秒',
|
|
829
968
|
'monitor.interval30': '30 秒',
|
|
830
969
|
'monitor.linuxOnly': '完整指标来自 Linux /proc;其他平台显示为未知。',
|
|
970
|
+
'proc.title': '进程',
|
|
971
|
+
'proc.host': '主机',
|
|
972
|
+
'proc.filter': '过滤命令 / 用户 / PID',
|
|
973
|
+
'proc.sort': '排序',
|
|
974
|
+
'proc.sortCpu': '按 CPU(平均值)',
|
|
975
|
+
'proc.sortMem': '按内存',
|
|
976
|
+
'proc.sortPid': '按 PID',
|
|
977
|
+
'proc.refresh': '刷新进程表',
|
|
978
|
+
'proc.elapsed': '运行时长',
|
|
979
|
+
'proc.command': '命令',
|
|
980
|
+
'proc.cpuHint': 'CPU% 是进程生命周期平均值(ps pcpu),不是瞬时值。',
|
|
981
|
+
'proc.killTitle': '结束进程',
|
|
982
|
+
'proc.killText': '向主机 {host} 的 PID {pid} 发送 TERM?\n{command}',
|
|
983
|
+
'proc.kill': '结束',
|
|
984
|
+
'proc.killSent': '已向 PID {pid} 发送 TERM。',
|
|
985
|
+
'proc.killForceTitle': '强制结束进程',
|
|
986
|
+
'proc.killForceText': 'TERM 没有结束主机 {host} 的 PID {pid};发送 KILL(不可捕获,可能丢数据)?\n{command}',
|
|
987
|
+
'proc.killForce': '强制',
|
|
988
|
+
'proc.killForceSent': '已向 PID {pid} 发送 KILL。',
|
|
989
|
+
'proc.unknown': '—',
|
|
990
|
+
'proc.cannotEnumerate': '无法枚举远端进程(ps 探针没有给出可信结果)。',
|
|
991
|
+
'proc.noPs': '远端没有可用的 ps,无法枚举进程。',
|
|
992
|
+
'proc.truncated': '只列出 CPU 最高的前 {count} 个进程。',
|
|
993
|
+
'proc.noHost': '没有可采样的远端主机。',
|
|
994
|
+
'proc.empty': '没有匹配的进程。',
|
|
995
|
+
'proc.hostTooOld': '宿主版本过旧:进程面板需要新版 dsh-remote-vs,请升级插件后刷新。',
|
|
996
|
+
'proc.expand': '展开进程分区',
|
|
997
|
+
'proc.collapse': '收起进程分区',
|
|
998
|
+
'proc.collapsedHint': '展开以查看远端的进程快照(按 CPU 排序)。',
|
|
831
999
|
}
|
|
832
1000
|
|
|
833
1001
|
const en: Record<string, string> = {
|
|
@@ -1336,6 +1504,35 @@ const en: Record<string, string> = {
|
|
|
1336
1504
|
'history.diffToolbar': 'Patch tools',
|
|
1337
1505
|
'editor.preview': 'Preview',
|
|
1338
1506
|
'editor.source': 'Source',
|
|
1507
|
+
'preview.converting': 'Converting with remote LibreOffice…',
|
|
1508
|
+
'preview.convertingHint': 'Converted by the host LibreOffice; the first open usually takes a few seconds.',
|
|
1509
|
+
'preview.failedTitle': 'Cannot preview this file',
|
|
1510
|
+
'preview.failedHint': 'The file may be corrupt, unsupported, or the conversion failed.',
|
|
1511
|
+
'preview.tooLargeTitle': 'File is too large to preview',
|
|
1512
|
+
'preview.tooLargeHint': 'It exceeds the Host or plugin read limit; open it with a native app instead.',
|
|
1513
|
+
'preview.unavailableTitle': 'No preview service is available',
|
|
1514
|
+
'preview.unavailableHint': 'The Host did not mount the required file/Office services; the plugin falls back to its own download path.',
|
|
1515
|
+
'preview.notFoundTitle': 'The file is no longer on disk',
|
|
1516
|
+
'preview.notFoundHint': 'It may have been deleted, renamed or moved out of the workspace.',
|
|
1517
|
+
'preview.remoteTitle': 'Remote file cannot be previewed',
|
|
1518
|
+
'preview.remoteHint': 'The Host refused this byte-read path.',
|
|
1519
|
+
'preview.officeUnavailableTitle': 'LibreOffice is not available on the remote host',
|
|
1520
|
+
'preview.officeUnavailableHint': 'The host officeKit is unavailable and the remote host has no LibreOffice, so this document cannot be converted. Install the host kit with: npm install @deepseek-ai/libreoffice-kit@latest — or install libreoffice on the remote host.',
|
|
1521
|
+
'preview.truncated': 'File is too large; only the loaded part is previewed.',
|
|
1522
|
+
'preview.tableTruncated': 'Data exceeds {rows} rows / {cells} cells; only the first part was parsed.',
|
|
1523
|
+
'preview.tableHiddenRows': 'Only the first {shown} rows are shown; {rest} more are hidden.',
|
|
1524
|
+
'preview.tableHiddenColumns': 'Only the first {shown} columns are shown; {rest} more are hidden.',
|
|
1525
|
+
'preview.tableEmptyTitle': 'Empty table',
|
|
1526
|
+
'preview.tableEmptyHint': 'This file has no rows to show.',
|
|
1527
|
+
'preview.documentHint': 'Paging / zoom live in the browser’s built-in viewer',
|
|
1528
|
+
'preview.mediaUnsupported': 'The browser does not support this container or codec',
|
|
1529
|
+
'preview.svgFailed': 'SVG cannot be rendered',
|
|
1530
|
+
'preview.svgFailedHint': 'The file is not valid SVG. Switch to source to inspect and fix the markup.',
|
|
1531
|
+
'preview.svgHint': 'SVG is rendered as an image: scripts do not run.',
|
|
1532
|
+
'preview.copyCode': 'Copy code',
|
|
1533
|
+
'preview.copied': 'Copied',
|
|
1534
|
+
'preview.footnotes': 'Footnotes',
|
|
1535
|
+
'common.retry': 'Retry',
|
|
1339
1536
|
'editor.imageFailed': 'Could not read the image.',
|
|
1340
1537
|
'editor.closeDirty': 'Unsaved changes',
|
|
1341
1538
|
'editor.discardClose': 'Discard and close',
|
|
@@ -1366,6 +1563,34 @@ const en: Record<string, string> = {
|
|
|
1366
1563
|
'editor.tabsLabel': 'Open editors',
|
|
1367
1564
|
'editor.diffSuffix': ' (diff)',
|
|
1368
1565
|
'editor.wrap': 'Word wrap',
|
|
1566
|
+
'editor.blameToggle': 'Inline blame (author + age; click a line for its commit)',
|
|
1567
|
+
'editor.blameOpenCaret': 'Open the commit at the caret',
|
|
1568
|
+
'editor.fileHistory': 'File history',
|
|
1569
|
+
'editor.fileHistoryEmpty': 'No commit history for this file.',
|
|
1570
|
+
'editor.outline': 'Outline',
|
|
1571
|
+
'outline.title': 'File outline',
|
|
1572
|
+
'outline.placeholder': 'Filter symbols…',
|
|
1573
|
+
'outline.hint': '↑↓ select · Enter jump · Esc close',
|
|
1574
|
+
'outline.empty': 'No recognisable symbols in this file.',
|
|
1575
|
+
'outline.noResults': 'No matching symbols.',
|
|
1576
|
+
'outline.more': 'Results truncated: {total} matches, showing the first {count}; keep typing to narrow them down.',
|
|
1577
|
+
'outline.truncated': 'Too many symbols: only the first {count} are listed.',
|
|
1578
|
+
'outline.guessed': 'Language not recognised: this outline is guessed from indentation and keywords.',
|
|
1579
|
+
'outline.kind.class': 'class',
|
|
1580
|
+
'outline.kind.interface': 'interface',
|
|
1581
|
+
'outline.kind.struct': 'struct',
|
|
1582
|
+
'outline.kind.enum': 'enum',
|
|
1583
|
+
'outline.kind.trait': 'trait',
|
|
1584
|
+
'outline.kind.impl': 'impl',
|
|
1585
|
+
'outline.kind.namespace': 'namespace',
|
|
1586
|
+
'outline.kind.module': 'module',
|
|
1587
|
+
'outline.kind.function': 'function',
|
|
1588
|
+
'outline.kind.method': 'method',
|
|
1589
|
+
'outline.kind.constructor': 'constructor',
|
|
1590
|
+
'outline.kind.field': 'field',
|
|
1591
|
+
'outline.kind.variable': 'variable',
|
|
1592
|
+
'outline.kind.type': 'type',
|
|
1593
|
+
'outline.kind.macro': 'macro',
|
|
1369
1594
|
'editor.fontSmaller': 'Smaller font (Ctrl+wheel)',
|
|
1370
1595
|
'editor.fontLarger': 'Larger font (Ctrl+wheel)',
|
|
1371
1596
|
'editor.openInCenter': 'Open full width in the conversation view',
|
|
@@ -1417,6 +1642,23 @@ const en: Record<string, string> = {
|
|
|
1417
1642
|
'git.notARepo': 'This remote workspace is not a git repository.',
|
|
1418
1643
|
// -- session change panel (above the composer)
|
|
1419
1644
|
'changes.title': 'Changed files',
|
|
1645
|
+
'changes.scopeLabel': 'Change scope',
|
|
1646
|
+
'changes.scopeSession': 'Session total',
|
|
1647
|
+
'changes.scopeTurn': 'This turn',
|
|
1648
|
+
'changes.scopeSessionHint': 'Everything this session changed, measured from the session baseline',
|
|
1649
|
+
'changes.scopeTurnHint': 'Only what the most recent completed turn changed (earlier turns are not included)',
|
|
1650
|
+
'changes.turnTitle': 'Turn #{turn} · {time}',
|
|
1651
|
+
'changes.turnEmpty': 'This turn changed no file.',
|
|
1652
|
+
'changes.turnStatsOnly': 'This turn has totals only: its contents exceeded the host memory budget, so there are no change marks and nothing can be reverted (the session-total view is unaffected).',
|
|
1653
|
+
'changes.turnUnavailable': 'No turn contents to show for this file',
|
|
1654
|
+
'changes.turnStaleFallback': 'This file was modified after the turn closed, so the session-total view is used instead.',
|
|
1655
|
+
'changes.turnMarksStale': 'The turn comparison is out of date (the file changed after the turn closed); its marks were cleared.',
|
|
1656
|
+
'changes.turnDiffDisabled': 'The turn view opens the file only; use the session-total view for the side-by-side diff',
|
|
1657
|
+
'changes.turnPending': 'This turn is still waiting for its new-file scan: the same turn is recomputed, so the list may still grow.',
|
|
1658
|
+
'changes.turnPartial': 'This turn view is incomplete: some files could not be attributed (the previous side was unknown, the list exceeded the file cap, or the previous turn\'s scan never landed) and were skipped.',
|
|
1659
|
+
'changes.turnRevertedHidden': 'Reverted in this turn: {n} file(s), hidden from the list.',
|
|
1660
|
+
'changes.turnRevertedAll': 'All changes from this turn have been reverted.',
|
|
1661
|
+
'changes.turnRevertNotPossible': 'The turn view keeps reverse patches only and offers no "undo the new file"; delete it from the session-total view or the Source Control panel.',
|
|
1420
1662
|
'changes.onlyUnreviewed': 'Only unreviewed',
|
|
1421
1663
|
'changes.nextUnreviewed': 'Next unreviewed',
|
|
1422
1664
|
'changes.allReviewed': 'All reviewed',
|
|
@@ -1457,7 +1699,7 @@ const en: Record<string, string> = {
|
|
|
1457
1699
|
'changes.navLabel': 'Change navigation',
|
|
1458
1700
|
'changes.refresh': 'Recompute changes',
|
|
1459
1701
|
'changes.stale': 'positions stale',
|
|
1460
|
-
'changes.staleHint': 'The editor content
|
|
1702
|
+
'changes.staleHint': 'The change list or the editor content moved on, so these marks may be out of date. Click the file in the list to recompute.',
|
|
1461
1703
|
'changes.noWorkspace': 'No workspace is bound to that host, so the file cannot be opened.',
|
|
1462
1704
|
// -- editor gutter marks and deleted chips (title / aria-label in vsc/change-marks.ts)
|
|
1463
1705
|
'changes.markAdd': 'Added line',
|
|
@@ -1474,6 +1716,27 @@ const en: Record<string, string> = {
|
|
|
1474
1716
|
'changes.undoNoContext': 'The host and repository behind this change are unknown, so nothing was reverted.',
|
|
1475
1717
|
'changes.undoConflict': 'The surroundings of this change moved, so the host refused the revert (the file was not modified).',
|
|
1476
1718
|
'changes.undoMissing': 'No patch is available for this change, so nothing was reverted.',
|
|
1719
|
+
// -- why a revert failed (git apply stderr → four actionable readings)
|
|
1720
|
+
'changes.applyContextMoved': 'The remote file has moved on, so the patch no longer applies (the file was not modified).',
|
|
1721
|
+
'changes.applyPathMissing': 'The file the patch names is gone on the remote side (deleted or renamed).',
|
|
1722
|
+
'changes.applyPermission': 'The remote side refused the write (permission denied or a read-only filesystem).',
|
|
1723
|
+
'changes.applyOwnership': 'The remote repository is owned by a different user, so git refuses: set safe.directory or fix the ownership.',
|
|
1724
|
+
'changes.applyCorrupt': 'The patch is incomplete or corrupt; reopen the file to fetch the change again, then retry.',
|
|
1725
|
+
'changes.applyOther': 'The remote side refused this patch; the raw message follows.',
|
|
1726
|
+
// -- the hover bar's second action: a block-level local "keep" note
|
|
1727
|
+
'changes.actions': 'Change actions',
|
|
1728
|
+
'changes.confirmBlock': 'Keep this change',
|
|
1729
|
+
'changes.confirmedBlock': 'Kept',
|
|
1730
|
+
// -- the five visible outcomes when one row's diff is fetched
|
|
1731
|
+
'changes.diffTruncated': 'The remote withheld this change at its byte cap, so the comparison is incomplete (it may count the whole file as changed): nothing is marked and nothing can be reverted.',
|
|
1732
|
+
'changes.diffOversized': 'The file is too large and its content was withheld, so there is no line-level comparison (no change marks, no undo); open the file to read it.',
|
|
1733
|
+
'changes.diffBinary': 'This is a binary file: there is no text diff, so no change marks are drawn.',
|
|
1734
|
+
'changes.diffMissing': 'The file could not be read on the remote side (deleted or unreadable), so there is no change to show.',
|
|
1735
|
+
'changes.diffEmpty': 'This file has no diff to show right now (the change may have been reverted).',
|
|
1736
|
+
// -- straight to a diff from the panel (read-only, ledger baseline)
|
|
1737
|
+
'changes.menuViewDiff': 'View diff (read-only)',
|
|
1738
|
+
'changes.diffNotPossible': 'Binary or too large: there is no diff to show',
|
|
1739
|
+
'changes.diffTabLabel': 'Session change',
|
|
1477
1740
|
// -- connection status + degraded (offline read-only) mode
|
|
1478
1741
|
'connection.ok': 'Connection OK',
|
|
1479
1742
|
'connection.error': 'Connection issue',
|
|
@@ -1572,6 +1835,35 @@ const en: Record<string, string> = {
|
|
|
1572
1835
|
'monitor.interval10': '10 s',
|
|
1573
1836
|
'monitor.interval30': '30 s',
|
|
1574
1837
|
'monitor.linuxOnly': 'Full metrics come from Linux /proc; other platforms show unknown.',
|
|
1838
|
+
'proc.title': 'Processes',
|
|
1839
|
+
'proc.host': 'Host',
|
|
1840
|
+
'proc.filter': 'Filter command / user / PID',
|
|
1841
|
+
'proc.sort': 'Sort',
|
|
1842
|
+
'proc.sortCpu': 'CPU (average)',
|
|
1843
|
+
'proc.sortMem': 'Memory',
|
|
1844
|
+
'proc.sortPid': 'PID',
|
|
1845
|
+
'proc.refresh': 'Refresh the process table',
|
|
1846
|
+
'proc.elapsed': 'ELAPSED',
|
|
1847
|
+
'proc.command': 'COMMAND',
|
|
1848
|
+
'proc.cpuHint': 'CPU% is the lifetime average (ps pcpu), not an instantaneous value.',
|
|
1849
|
+
'proc.killTitle': 'End process',
|
|
1850
|
+
'proc.killText': 'Send TERM to PID {pid} on {host}?\n{command}',
|
|
1851
|
+
'proc.kill': 'End',
|
|
1852
|
+
'proc.killSent': 'Sent TERM to PID {pid}.',
|
|
1853
|
+
'proc.killForceTitle': 'Force-kill process',
|
|
1854
|
+
'proc.killForceText': 'TERM did not stop PID {pid} on {host}; send KILL (uncatchable, may lose data)?\n{command}',
|
|
1855
|
+
'proc.killForce': 'Force',
|
|
1856
|
+
'proc.killForceSent': 'Sent KILL to PID {pid}.',
|
|
1857
|
+
'proc.unknown': '—',
|
|
1858
|
+
'proc.cannotEnumerate': 'Cannot enumerate remote processes (the ps probe gave no trustworthy answer).',
|
|
1859
|
+
'proc.noPs': 'The remote host has no usable ps, so processes cannot be enumerated.',
|
|
1860
|
+
'proc.truncated': 'Only the top {count} processes by CPU are listed.',
|
|
1861
|
+
'proc.noHost': 'No remote host to sample.',
|
|
1862
|
+
'proc.empty': 'No matching processes.',
|
|
1863
|
+
'proc.hostTooOld': 'Host too old: the process panel needs a newer dsh-remote-vs; upgrade the plugin and refresh.',
|
|
1864
|
+
'proc.expand': 'Expand processes',
|
|
1865
|
+
'proc.collapse': 'Collapse processes',
|
|
1866
|
+
'proc.collapsedHint': 'Expand for the remote process snapshot (sorted by CPU).',
|
|
1575
1867
|
}
|
|
1576
1868
|
|
|
1577
1869
|
export type Lang = 'zh' | 'en'
|
package/src/client/index.tsx
CHANGED
|
@@ -32,6 +32,7 @@ import { SettingsHostsSection, SettingsWorkspacesSection } from './SettingsHosts
|
|
|
32
32
|
import { openFloatingEditor, setEditorSurface } from './store.tsx'
|
|
33
33
|
import { detectLang, makeT } from './i18n.ts'
|
|
34
34
|
import { DialogHost, setIconService, toast, type IconServiceLike } from './vsc/kit.tsx'
|
|
35
|
+
import { installPreviewServices } from './vsc/preview-services.ts'
|
|
35
36
|
import { setHostNoticeEmitter } from './notices.ts'
|
|
36
37
|
|
|
37
38
|
/** Services required before mounting (slots/uiWorkspace are core web services). */
|
|
@@ -49,6 +50,9 @@ function RemoteIcon({ size }: { size?: number }): React.ReactNode {
|
|
|
49
50
|
|
|
50
51
|
/** Client plugin body. */
|
|
51
52
|
export function apply(ctx: Context): void {
|
|
53
|
+
// Document previews soft-read the host's workspaceFiles/officeKit remotes;
|
|
54
|
+
// missing services degrade to the plugin's own /download path.
|
|
55
|
+
ctx.effect(() => installPreviewServices(ctx), 'dsh-remote-vs: preview host services')
|
|
52
56
|
// Explorer surface, exactly one of two: the better-sidebar tab when that
|
|
53
57
|
// plugin is installed, else a native right-Sidebar page (same root, guide
|
|
54
58
|
// entry). No load-order edge exists (client inject metadata is
|