dsh-remote-vs 0.19.1 → 0.20.1

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/lib/client.js CHANGED
@@ -360,7 +360,7 @@ window.__ModuleLoader__.load({
360
360
  "tab.terminal": "终端",
361
361
  "tab.ports": "端口",
362
362
  "tab.monitor": "监控",
363
- "tab.remote": "远程",
363
+ "tab.remote": "远程工作台",
364
364
  "tab.remoteDesc": "远端文件、终端与 Git",
365
365
  "hosts.title": "远程主机",
366
366
  "hosts.empty": "尚未配置主机。点击「新增主机」,或从现有配置导入。",
@@ -526,8 +526,8 @@ window.__ModuleLoader__.load({
526
526
  "settings.hosts": "远程主机",
527
527
  "settings.workspaces": "远程工作区",
528
528
  "plugin.version": "插件版本",
529
- "native.tab": "远程",
530
- "native.guide.title": "远程",
529
+ "native.tab": "远程工作台",
530
+ "native.guide.title": "远程工作台",
531
531
  "native.guide.desc": "远端文件、终端与 Git",
532
532
  "tab.search": "搜索",
533
533
  "tab.history": "历史",
@@ -962,7 +962,7 @@ window.__ModuleLoader__.load({
962
962
  "tab.terminal": "Terminal",
963
963
  "tab.ports": "Ports",
964
964
  "tab.monitor": "Monitor",
965
- "tab.remote": "Remote",
965
+ "tab.remote": "Remote Workspace",
966
966
  "tab.remoteDesc": "Remote files, terminal and Git",
967
967
  "hosts.title": "Remote hosts",
968
968
  "hosts.empty": "No hosts yet. Add one, or import from existing configs.",
@@ -1128,8 +1128,8 @@ window.__ModuleLoader__.load({
1128
1128
  "settings.hosts": "Remote hosts",
1129
1129
  "settings.workspaces": "Remote workspaces",
1130
1130
  "plugin.version": "Plugin version",
1131
- "native.tab": "Remote",
1132
- "native.guide.title": "Remote",
1131
+ "native.tab": "Remote Workspace",
1132
+ "native.guide.title": "Remote Workspace",
1133
1133
  "native.guide.desc": "Remote files, terminal and Git",
1134
1134
  "tab.search": "Search",
1135
1135
  "tab.history": "History",
@@ -23269,6 +23269,17 @@ window.__ModuleLoader__.load({
23269
23269
  run: toggleTabFocusMode
23270
23270
  }
23271
23271
  ].concat(standardKeymap);
23272
+ /**
23273
+ A binding that binds Tab to [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) and
23274
+ Shift-Tab to [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess).
23275
+ Please see the [Tab example](../../examples/tab/) before using
23276
+ this.
23277
+ */
23278
+ const indentWithTab = {
23279
+ key: "Tab",
23280
+ run: indentMore,
23281
+ shift: indentLess
23282
+ };
23272
23283
  //#endregion
23273
23284
  //#region node_modules/.pnpm/@codemirror+autocomplete@6.20.3/node_modules/@codemirror/autocomplete/dist/index.js
23274
23285
  /**
@@ -25061,6 +25072,625 @@ window.__ModuleLoader__.load({
25061
25072
  return dark ? DARK : LIGHT;
25062
25073
  }
25063
25074
  //#endregion
25075
+ //#region src/client/vsc/file-icons.tsx
25076
+ /** File paper outline (shared by every file-type icon). */
25077
+ const SHEET = "M4 1.4h5.4l3.6 3.6v9.4c0 .5-.4.9-.9.9H3.1a.9.9 0 0 1-.9-.9V2.3c0-.5.4-.9.9-.9Z";
25078
+ /** Top-right fold. */
25079
+ const SHEET_FOLD = "M9.4 1.4v3.6h3.6";
25080
+ /** Extension → look. Brand colours are tuned for readability on dark and light. */
25081
+ const BY_EXT = {
25082
+ ts: {
25083
+ color: "#519aba",
25084
+ mark: "code"
25085
+ },
25086
+ mts: {
25087
+ color: "#519aba",
25088
+ mark: "code"
25089
+ },
25090
+ cts: {
25091
+ color: "#519aba",
25092
+ mark: "code"
25093
+ },
25094
+ tsx: {
25095
+ color: "#4fc3f7",
25096
+ mark: "code"
25097
+ },
25098
+ js: {
25099
+ color: "#d5c93f",
25100
+ mark: "code"
25101
+ },
25102
+ mjs: {
25103
+ color: "#d5c93f",
25104
+ mark: "code"
25105
+ },
25106
+ cjs: {
25107
+ color: "#d5c93f",
25108
+ mark: "code"
25109
+ },
25110
+ jsx: {
25111
+ color: "#4fc3f7",
25112
+ mark: "code"
25113
+ },
25114
+ json: {
25115
+ color: "#d2b13a",
25116
+ mark: "data"
25117
+ },
25118
+ jsonc: {
25119
+ color: "#d2b13a",
25120
+ mark: "data"
25121
+ },
25122
+ json5: {
25123
+ color: "#d2b13a",
25124
+ mark: "data"
25125
+ },
25126
+ md: {
25127
+ color: "#4b9fe3",
25128
+ mark: "doc"
25129
+ },
25130
+ markdown: {
25131
+ color: "#4b9fe3",
25132
+ mark: "doc"
25133
+ },
25134
+ mdx: {
25135
+ color: "#4b9fe3",
25136
+ mark: "doc"
25137
+ },
25138
+ py: {
25139
+ color: "#3572a5",
25140
+ mark: "code",
25141
+ markColor: "#ffd75e"
25142
+ },
25143
+ pyi: {
25144
+ color: "#3572a5",
25145
+ mark: "code",
25146
+ markColor: "#ffd75e"
25147
+ },
25148
+ java: {
25149
+ color: "#e05a4f",
25150
+ mark: "code"
25151
+ },
25152
+ kt: {
25153
+ color: "#a97bff",
25154
+ mark: "code"
25155
+ },
25156
+ c: {
25157
+ color: "#7f9bd6",
25158
+ mark: "code"
25159
+ },
25160
+ h: {
25161
+ color: "#a074c4",
25162
+ mark: "code"
25163
+ },
25164
+ cpp: {
25165
+ color: "#6295cb",
25166
+ mark: "code"
25167
+ },
25168
+ cc: {
25169
+ color: "#6295cb",
25170
+ mark: "code"
25171
+ },
25172
+ cxx: {
25173
+ color: "#6295cb",
25174
+ mark: "code"
25175
+ },
25176
+ hpp: {
25177
+ color: "#6295cb",
25178
+ mark: "code"
25179
+ },
25180
+ hh: {
25181
+ color: "#6295cb",
25182
+ mark: "code"
25183
+ },
25184
+ cs: {
25185
+ color: "#b878d8",
25186
+ mark: "code"
25187
+ },
25188
+ go: {
25189
+ color: "#00add8",
25190
+ mark: "code"
25191
+ },
25192
+ rs: {
25193
+ color: "#dea584",
25194
+ mark: "code"
25195
+ },
25196
+ php: {
25197
+ color: "#8b9be8",
25198
+ mark: "code"
25199
+ },
25200
+ rb: {
25201
+ color: "#e05a4f",
25202
+ mark: "code"
25203
+ },
25204
+ swift: {
25205
+ color: "#e8743b",
25206
+ mark: "code"
25207
+ },
25208
+ lua: {
25209
+ color: "#5a8fe0",
25210
+ mark: "code"
25211
+ },
25212
+ html: {
25213
+ color: "#e8743b",
25214
+ mark: "markup"
25215
+ },
25216
+ htm: {
25217
+ color: "#e8743b",
25218
+ mark: "markup"
25219
+ },
25220
+ vue: {
25221
+ color: "#41b883",
25222
+ mark: "markup"
25223
+ },
25224
+ svelte: {
25225
+ color: "#ff5c33",
25226
+ mark: "markup"
25227
+ },
25228
+ xml: {
25229
+ color: "#f19a38",
25230
+ mark: "markup"
25231
+ },
25232
+ xsl: {
25233
+ color: "#f19a38",
25234
+ mark: "markup"
25235
+ },
25236
+ css: {
25237
+ color: "#42a5f5",
25238
+ mark: "style"
25239
+ },
25240
+ scss: {
25241
+ color: "#e05a8f",
25242
+ mark: "style"
25243
+ },
25244
+ sass: {
25245
+ color: "#e05a8f",
25246
+ mark: "style"
25247
+ },
25248
+ less: {
25249
+ color: "#42a5f5",
25250
+ mark: "style"
25251
+ },
25252
+ yaml: {
25253
+ color: "#a074c4",
25254
+ mark: "data"
25255
+ },
25256
+ yml: {
25257
+ color: "#a074c4",
25258
+ mark: "data"
25259
+ },
25260
+ toml: {
25261
+ color: "#b08b6a",
25262
+ mark: "config"
25263
+ },
25264
+ ini: {
25265
+ color: "#b08b6a",
25266
+ mark: "config"
25267
+ },
25268
+ conf: {
25269
+ color: "#b08b6a",
25270
+ mark: "config"
25271
+ },
25272
+ cfg: {
25273
+ color: "#b08b6a",
25274
+ mark: "config"
25275
+ },
25276
+ env: {
25277
+ color: "#b08b6a",
25278
+ mark: "config"
25279
+ },
25280
+ sh: {
25281
+ color: "#4ec9b0",
25282
+ mark: "shell"
25283
+ },
25284
+ bash: {
25285
+ color: "#4ec9b0",
25286
+ mark: "shell"
25287
+ },
25288
+ zsh: {
25289
+ color: "#4ec9b0",
25290
+ mark: "shell"
25291
+ },
25292
+ fish: {
25293
+ color: "#4ec9b0",
25294
+ mark: "shell"
25295
+ },
25296
+ ps1: {
25297
+ color: "#4ec9b0",
25298
+ mark: "shell"
25299
+ },
25300
+ psm1: {
25301
+ color: "#4ec9b0",
25302
+ mark: "shell"
25303
+ },
25304
+ bat: {
25305
+ color: "#4ec9b0",
25306
+ mark: "shell"
25307
+ },
25308
+ cmd: {
25309
+ color: "#4ec9b0",
25310
+ mark: "shell"
25311
+ },
25312
+ txt: {
25313
+ color: "#9aa0a6",
25314
+ mark: "doc"
25315
+ },
25316
+ log: {
25317
+ color: "#9aa0a6",
25318
+ mark: "doc"
25319
+ },
25320
+ csv: {
25321
+ color: "#7fb36b",
25322
+ mark: "table"
25323
+ },
25324
+ tsv: {
25325
+ color: "#7fb36b",
25326
+ mark: "table"
25327
+ },
25328
+ xlsx: {
25329
+ color: "#7fb36b",
25330
+ mark: "table"
25331
+ },
25332
+ png: {
25333
+ color: "#b18adf",
25334
+ mark: "image"
25335
+ },
25336
+ jpg: {
25337
+ color: "#b18adf",
25338
+ mark: "image"
25339
+ },
25340
+ jpeg: {
25341
+ color: "#b18adf",
25342
+ mark: "image"
25343
+ },
25344
+ gif: {
25345
+ color: "#b18adf",
25346
+ mark: "image"
25347
+ },
25348
+ webp: {
25349
+ color: "#b18adf",
25350
+ mark: "image"
25351
+ },
25352
+ bmp: {
25353
+ color: "#b18adf",
25354
+ mark: "image"
25355
+ },
25356
+ ico: {
25357
+ color: "#b18adf",
25358
+ mark: "image"
25359
+ },
25360
+ avif: {
25361
+ color: "#b18adf",
25362
+ mark: "image"
25363
+ },
25364
+ svg: {
25365
+ color: "#b18adf",
25366
+ mark: "image"
25367
+ },
25368
+ pdf: {
25369
+ color: "#d94f4f",
25370
+ mark: "doc"
25371
+ },
25372
+ zip: {
25373
+ color: "#d9b64a",
25374
+ mark: "archive"
25375
+ },
25376
+ rar: {
25377
+ color: "#d9b64a",
25378
+ mark: "archive"
25379
+ },
25380
+ "7z": {
25381
+ color: "#d9b64a",
25382
+ mark: "archive"
25383
+ },
25384
+ tar: {
25385
+ color: "#d9b64a",
25386
+ mark: "archive"
25387
+ },
25388
+ gz: {
25389
+ color: "#d9b64a",
25390
+ mark: "archive"
25391
+ },
25392
+ tgz: {
25393
+ color: "#d9b64a",
25394
+ mark: "archive"
25395
+ },
25396
+ bz2: {
25397
+ color: "#d9b64a",
25398
+ mark: "archive"
25399
+ },
25400
+ xz: {
25401
+ color: "#d9b64a",
25402
+ mark: "archive"
25403
+ },
25404
+ lock: {
25405
+ color: "#8b949e",
25406
+ mark: "lock"
25407
+ },
25408
+ dockerfile: {
25409
+ color: "#2496ed",
25410
+ mark: "box"
25411
+ },
25412
+ docker: {
25413
+ color: "#2496ed",
25414
+ mark: "box"
25415
+ },
25416
+ gitignore: {
25417
+ color: "#e8703a",
25418
+ mark: "git"
25419
+ },
25420
+ gitattributes: {
25421
+ color: "#e8703a",
25422
+ mark: "git"
25423
+ },
25424
+ gitmodules: {
25425
+ color: "#e8703a",
25426
+ mark: "git"
25427
+ },
25428
+ exe: {
25429
+ color: "#8b949e",
25430
+ mark: "box"
25431
+ },
25432
+ dll: {
25433
+ color: "#8b949e",
25434
+ mark: "box"
25435
+ },
25436
+ so: {
25437
+ color: "#8b949e",
25438
+ mark: "box"
25439
+ },
25440
+ dylib: {
25441
+ color: "#8b949e",
25442
+ mark: "box"
25443
+ }
25444
+ };
25445
+ /** Exact file name → look (extension-less files and conventional names hit here first). */
25446
+ const BY_NAME = {
25447
+ dockerfile: {
25448
+ color: "#2496ed",
25449
+ mark: "box"
25450
+ },
25451
+ "docker-compose.yml": {
25452
+ color: "#2496ed",
25453
+ mark: "box"
25454
+ },
25455
+ "docker-compose.yaml": {
25456
+ color: "#2496ed",
25457
+ mark: "box"
25458
+ },
25459
+ makefile: {
25460
+ color: "#b08b6a",
25461
+ mark: "config"
25462
+ },
25463
+ gnumakefile: {
25464
+ color: "#b08b6a",
25465
+ mark: "config"
25466
+ },
25467
+ "cmakelists.txt": {
25468
+ color: "#b08b6a",
25469
+ mark: "config"
25470
+ },
25471
+ ".gitignore": {
25472
+ color: "#e8703a",
25473
+ mark: "git"
25474
+ },
25475
+ ".gitattributes": {
25476
+ color: "#e8703a",
25477
+ mark: "git"
25478
+ },
25479
+ ".gitmodules": {
25480
+ color: "#e8703a",
25481
+ mark: "git"
25482
+ },
25483
+ ".npmrc": {
25484
+ color: "#b08b6a",
25485
+ mark: "config"
25486
+ },
25487
+ ".editorconfig": {
25488
+ color: "#b08b6a",
25489
+ mark: "config"
25490
+ },
25491
+ ".prettierrc": {
25492
+ color: "#b08b6a",
25493
+ mark: "config"
25494
+ },
25495
+ "package-lock.json": {
25496
+ color: "#8b949e",
25497
+ mark: "lock"
25498
+ },
25499
+ "pnpm-lock.yaml": {
25500
+ color: "#8b949e",
25501
+ mark: "lock"
25502
+ },
25503
+ "yarn.lock": {
25504
+ color: "#8b949e",
25505
+ mark: "lock"
25506
+ },
25507
+ license: {
25508
+ color: "#9aa0a6",
25509
+ mark: "doc"
25510
+ },
25511
+ readme: {
25512
+ color: "#4b9fe3",
25513
+ mark: "doc"
25514
+ }
25515
+ };
25516
+ /** Unrecognised file: grey document. */
25517
+ const FALLBACK = {
25518
+ color: "#8b949e",
25519
+ mark: "doc"
25520
+ };
25521
+ /** Drawing commands for a category mark (coordinates sit on the sheet's lower half). */
25522
+ const MARKS = {
25523
+ code: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M6.4 7.8 5 9.6l1.4 1.8" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M9.6 7.8 11 9.6l-1.4 1.8" })] }),
25524
+ markup: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
25525
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.8 7.9 4.4 9.8l1.4 1.9" }),
25526
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8.6 7.5l-1.6 4.6" }),
25527
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M10.2 7.9l1.4 1.9-1.4 1.9" })
25528
+ ] }),
25529
+ style: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7.1 7.6 6.3 12M9.7 7.6l-.8 4.4" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.5 9h4.9M5.3 10.6h4.9" })] }),
25530
+ data: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7.1 7.4c-.9 0-.9.7-.9 1.3s0 1.2-.9 1.2c.9 0 .9.6.9 1.2s0 1.3.9 1.3" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8.9 7.4c.9 0 .9.7.9 1.3s0 1.2.9 1.2c-.9 0-.9.6-.9 1.2s0 1.3-.9 1.3" })] }),
25531
+ doc: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.2 7.8h5.6M5.2 9.7h5.6M5.2 11.6h3.6" }),
25532
+ image: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25533
+ cx: "6.4",
25534
+ cy: "8.1",
25535
+ r: ".85",
25536
+ fill: "currentColor",
25537
+ stroke: "none"
25538
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25539
+ d: "M4.8 12.2l2.1-2.6 1.5 1.7 1.2-1.3 1.8 2.2Z",
25540
+ fill: "currentColor",
25541
+ stroke: "none"
25542
+ })] }),
25543
+ archive: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
25544
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4.8 7.6h6.4v4.6H4.8z" }),
25545
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4.8 9h6.4" }),
25546
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7.2 7.6v1.4M7.2 10.4h1.6" })
25547
+ ] }),
25548
+ shell: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.2 8.2 6.9 9.8l-1.7 1.6" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8.3 11.4h2.7" })] }),
25549
+ config: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
25550
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5 8.2h6M5 11h6" }),
25551
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25552
+ cx: "7",
25553
+ cy: "8.2",
25554
+ r: "1.05"
25555
+ }),
25556
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25557
+ cx: "9.4",
25558
+ cy: "11",
25559
+ r: "1.05"
25560
+ })
25561
+ ] }),
25562
+ git: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
25563
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25564
+ cx: "6",
25565
+ cy: "7.7",
25566
+ r: "1"
25567
+ }),
25568
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25569
+ cx: "9.8",
25570
+ cy: "10.9",
25571
+ r: "1"
25572
+ }),
25573
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M6 8.7v1.3M9.8 8.6c0 1.4-3.8 1.3-3.8 2.3" })
25574
+ ] }),
25575
+ lock: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
25576
+ x: "5.4",
25577
+ y: "8.6",
25578
+ width: "5.2",
25579
+ height: "3.8",
25580
+ rx: "1"
25581
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M6.6 8.6V7.4a1.4 1.4 0 0 1 2.8 0v1.2" })] }),
25582
+ box: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4.6 8.4h2v1.8h-2zM6.9 8.4h2v1.8h-2zM6.9 10.5h2v1.8h-2zM4.6 12.6h6.8" }) }),
25583
+ table: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4.8 7.6h6.4v4.6H4.8z" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4.8 9.1h6.4M4.8 10.7h6.4M7.5 7.6v4.6" })] })
25584
+ };
25585
+ /** Basename of a path that may use either separator. */
25586
+ function baseName$1(path) {
25587
+ const normalized = path.replace(/\\/g, "/");
25588
+ return normalized.slice(normalized.lastIndexOf("/") + 1);
25589
+ }
25590
+ /** Resolve a path's look from its name / extension. */
25591
+ function lookOf(path) {
25592
+ const name = baseName$1(path).toLowerCase();
25593
+ const named = BY_NAME[name];
25594
+ if (named !== void 0) return named;
25595
+ if (name.startsWith(".env")) return {
25596
+ color: "#b08b6a",
25597
+ mark: "config"
25598
+ };
25599
+ const dot = name.lastIndexOf(".");
25600
+ if (dot <= 0) return FALLBACK;
25601
+ return BY_EXT[name.slice(dot + 1)] ?? FALLBACK;
25602
+ }
25603
+ /**
25604
+ * Coloured file-type icon: sheet + top-right fold + bottom-right category mark.
25605
+ *
25606
+ * At 16 px this reads better than two-letter badges and does not depend on font
25607
+ * rendering.
25608
+ */
25609
+ function FileTypeIcon(props) {
25610
+ const size = props.size ?? 16;
25611
+ const look = lookOf(props.path);
25612
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
25613
+ width: size,
25614
+ height: size,
25615
+ viewBox: "0 0 16 16",
25616
+ fill: "none",
25617
+ className: props.className,
25618
+ "aria-hidden": "true",
25619
+ children: [
25620
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25621
+ d: SHEET,
25622
+ fill: look.color,
25623
+ fillOpacity: .14,
25624
+ stroke: look.color,
25625
+ strokeWidth: 1,
25626
+ strokeLinejoin: "round"
25627
+ }),
25628
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25629
+ d: SHEET_FOLD,
25630
+ stroke: look.color,
25631
+ strokeWidth: 1,
25632
+ strokeLinejoin: "round"
25633
+ }),
25634
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("g", {
25635
+ stroke: look.markColor ?? look.color,
25636
+ strokeWidth: 1.15,
25637
+ strokeLinecap: "round",
25638
+ strokeLinejoin: "round",
25639
+ style: { color: look.markColor ?? look.color },
25640
+ children: MARKS[look.mark]
25641
+ })
25642
+ ]
25643
+ });
25644
+ }
25645
+ Object.keys(BY_EXT).sort();
25646
+ /**
25647
+ * Amber folder icon. The folder colour is content colour, in the same scheme as
25648
+ * the file types — it does not follow the skin.
25649
+ */
25650
+ function FolderGlyph(props) {
25651
+ const size = props.size ?? 16;
25652
+ return props.open === true ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
25653
+ width: size,
25654
+ height: size,
25655
+ viewBox: "0 0 16 16",
25656
+ fill: "none",
25657
+ className: props.className,
25658
+ "aria-hidden": "true",
25659
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25660
+ d: "M1.9 12V4.3c0-.6.4-1 1-1h3.2l1.5 1.7h5.6c.6 0 1 .4 1 1v5.4",
25661
+ fill: "#c69a3f",
25662
+ stroke: "#a8781c",
25663
+ strokeWidth: ".9",
25664
+ strokeLinejoin: "round"
25665
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25666
+ d: "M2 12.6 3.5 8c.1-.4.5-.7.9-.7h9.5c.7 0 1.2.7 1 1.4l-1.3 3.8c-.1.4-.5.7-.9.7H2.9c-.6 0-1-.5-.9-1.1Z",
25667
+ fill: "#e7b95d",
25668
+ stroke: "#a8781c",
25669
+ strokeWidth: ".9",
25670
+ strokeLinejoin: "round"
25671
+ })]
25672
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
25673
+ width: size,
25674
+ height: size,
25675
+ viewBox: "0 0 16 16",
25676
+ fill: "none",
25677
+ className: props.className,
25678
+ "aria-hidden": "true",
25679
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25680
+ d: "M1.9 12.3V4.2c0-.6.4-1 1-1h3.2l1.5 1.7h5.6c.6 0 1 .4 1 1v6.4c0 .6-.4 1-1 1H2.9c-.6 0-1-.4-1-1Z",
25681
+ fill: "#d9ab4e",
25682
+ stroke: "#a8781c",
25683
+ strokeWidth: ".9",
25684
+ strokeLinejoin: "round"
25685
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25686
+ d: "M2.6 5.3h10.8",
25687
+ stroke: "#a8781c",
25688
+ strokeWidth: ".9",
25689
+ opacity: ".45"
25690
+ })]
25691
+ });
25692
+ }
25693
+ //#endregion
25064
25694
  //#region src/client/vsc/kit.tsx
25065
25695
  /**
25066
25696
  * The VS Code-style widget kit shared by every new surface: icons, the
@@ -25069,11 +25699,18 @@ window.__ModuleLoader__.load({
25069
25699
  * ships the same split, and the confirm dialogs are what guard destructive
25070
25700
  * remote git verbs).
25071
25701
  *
25072
- * Icon sourcing: when dsh-better-sidebar is installed its service answers
25073
- * `fileIcon` / `folderIcon`, which run the host's own classifier and any
25074
- * user-registered icon theme — the remote tree then matches the user's local
25075
- * sidebar glyph for glyph. Without that service the built-in SVG set below
25076
- * takes over, so the native fallback surface still renders a real tree.
25702
+ * Icon sourcing has two tiers. `FileIcon` / `FolderIcon` paint the plain glyphs
25703
+ * below (search hits, SCM rows, commit panes, download rows — list chrome where
25704
+ * one neutral outline reads best). `ExplorerFileIcon` / `ExplorerFolderIcon`
25705
+ * paint the COLOURED type set ported from the local sidebar plugin in
25706
+ * `./file-icons.tsx`, so the remote directory tree looks like the local
25707
+ * sidebar's tree: one sheet whose colour and mark carry the file type, and an
25708
+ * amber folder that opens.
25709
+ *
25710
+ * Every tier still prefers the host service when one is published (the
25711
+ * better-sidebar contract's `fileIcon` / `folderIcon`: host classifier plus any
25712
+ * registered icon theme). That plugin publishes none today, so with the local
25713
+ * sidebar installed the SVG sets above are what actually render.
25077
25714
  */
25078
25715
  function svg(size, children, className) {
25079
25716
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
@@ -25330,6 +25967,28 @@ window.__ModuleLoader__.load({
25330
25967
  className: props.className
25331
25968
  });
25332
25969
  }
25970
+ /** Explorer file row: host glyph when available, else the coloured type icon. */
25971
+ function ExplorerFileIcon(props) {
25972
+ const size = props.size ?? 16;
25973
+ const fromHost = tryService(() => iconService?.fileIcon(props.path, size));
25974
+ if (fromHost !== void 0) return fromHost;
25975
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileTypeIcon, {
25976
+ path: props.path,
25977
+ size,
25978
+ className: props.className
25979
+ });
25980
+ }
25981
+ /** Explorer directory row: host glyph when available, else the amber folder. */
25982
+ function ExplorerFolderIcon(props) {
25983
+ const size = props.size ?? 16;
25984
+ const fromHost = tryService(() => iconService?.folderIcon(props.path, props.open, size));
25985
+ if (fromHost !== void 0) return fromHost;
25986
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FolderGlyph, {
25987
+ open: props.open,
25988
+ size,
25989
+ className: props.className
25990
+ });
25991
+ }
25333
25992
  const IMAGE_EXTS = /* @__PURE__ */ new Set([
25334
25993
  "png",
25335
25994
  "jpg",
@@ -26310,6 +26969,83 @@ window.__ModuleLoader__.load({
26310
26969
  });
26311
26970
  }
26312
26971
  //#endregion
26972
+ //#region src/client/vsc/editor-keymap.ts
26973
+ /**
26974
+ * Build the editor keymap.
26975
+ *
26976
+ * Order: the stock keymaps first, then the two additions that make this editor
26977
+ * behave like VS Code — `indentWithTab` (Tab / Shift-Tab indent or dedent) and
26978
+ * our own shortcuts. `indentWithTab` is deliberately NOT part of CodeMirror's
26979
+ * defaults, which is exactly what shipped the "Tab does nothing" bug; a red
26980
+ * proof in the gate removes it again.
26981
+ */
26982
+ function editorKeymap(handlers) {
26983
+ return [
26984
+ ...defaultKeymap,
26985
+ ...historyKeymap,
26986
+ indentWithTab,
26987
+ {
26988
+ key: "Mod-s",
26989
+ run: () => {
26990
+ handlers.save();
26991
+ return true;
26992
+ },
26993
+ preventDefault: true
26994
+ },
26995
+ {
26996
+ key: "Mod-f",
26997
+ run: (view) => {
26998
+ handlers.openFindForSelection(view);
26999
+ return true;
27000
+ },
27001
+ preventDefault: true
27002
+ },
27003
+ {
27004
+ key: "F3",
27005
+ run: (view) => {
27006
+ handlers.stepFind(view, true);
27007
+ return true;
27008
+ },
27009
+ preventDefault: true
27010
+ },
27011
+ {
27012
+ key: "Shift-F3",
27013
+ run: (view) => {
27014
+ handlers.stepFind(view, false);
27015
+ return true;
27016
+ },
27017
+ preventDefault: true
27018
+ },
27019
+ (
27020
+ /**
27021
+ * Previous / next change hunk.
27022
+ *
27023
+ * `Mod-Shift-Alt-ArrowUp/Down` is the free combination: defaultKeymap already
27024
+ * uses `Mod-Alt-Arrow*` (multi-cursor), `Alt-Arrow*` (move line) and
27025
+ * `Shift-Alt-Arrow*` (copy line), and browsers leave this extra Shift alone.
27026
+ *
27027
+ * NO `preventDefault: true` here, deliberately: CodeMirror prevents the
27028
+ * default whenever a binding for that key sets the flag, even if every
27029
+ * command returns false (view keymap `runFor`). With the panel closed the
27030
+ * handler returns false, and the key must fall through instead of being
27031
+ * swallowed — the 2026-11-10 gate found this latent swallow while pinning
27032
+ * the Tab fix.
27033
+ */
27034
+ {
27035
+ key: "Mod-Shift-Alt-ArrowDown",
27036
+ run: () => handlers.stepHunk(1)
27037
+ }),
27038
+ {
27039
+ key: "Mod-Shift-Alt-ArrowUp",
27040
+ run: () => handlers.stepHunk(-1)
27041
+ },
27042
+ {
27043
+ key: "Escape",
27044
+ run: () => handlers.closeFind()
27045
+ }
27046
+ ];
27047
+ }
27048
+ //#endregion
26313
27049
  //#region node_modules/.pnpm/@lezer+lr@1.4.11/node_modules/@lezer/lr/dist/index.js
26314
27050
  /**
26315
27051
  A parse stack. These are used internally by the parser to track
@@ -40567,91 +41303,36 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
40567
41303
  if (host === null) return;
40568
41304
  const extensions = [
40569
41305
  history(),
40570
- keymap.of([
40571
- ...defaultKeymap,
40572
- ...historyKeymap,
40573
- {
40574
- key: "Mod-s",
40575
- run: () => {
40576
- propsRef.current.onSave();
40577
- return true;
40578
- },
40579
- preventDefault: true
41306
+ keymap.of(editorKeymap({
41307
+ save: () => {
41308
+ propsRef.current.onSave();
40580
41309
  },
40581
- {
40582
- key: "Mod-f",
40583
- run: (view) => {
40584
- const sel = view.state.selection.main;
40585
- if (!sel.empty) {
40586
- const text = view.state.sliceDoc(sel.from, sel.to);
40587
- if (text !== "" && text.length <= 200) setFindSeed((prev) => ({
40588
- text,
40589
- id: prev.id + 1
40590
- }));
40591
- }
40592
- setFindOpen(true);
40593
- return true;
40594
- },
40595
- preventDefault: true
40596
- },
40597
- {
40598
- key: "F3",
40599
- run: (view) => {
40600
- stepFind(view, true);
40601
- return true;
40602
- },
40603
- preventDefault: true
41310
+ openFindForSelection: (view) => {
41311
+ const sel = view.state.selection.main;
41312
+ if (!sel.empty) {
41313
+ const text = view.state.sliceDoc(sel.from, sel.to);
41314
+ if (text !== "" && text.length <= 200) setFindSeed((prev) => ({
41315
+ text,
41316
+ id: prev.id + 1
41317
+ }));
41318
+ }
41319
+ setFindOpen(true);
40604
41320
  },
40605
- {
40606
- key: "Shift-F3",
40607
- run: (view) => {
40608
- stepFind(view, false);
40609
- return true;
40610
- },
40611
- preventDefault: true
41321
+ stepFind: (view, forward) => {
41322
+ stepFind(view, forward);
40612
41323
  },
40613
- (
40614
- /**
40615
- * 上一个 / 下一个改动点。
40616
- *
40617
- * `Mod-Shift-Alt-ArrowUp/Down` 是挑出来的空位:`@codemirror/commands` 的
40618
- * defaultKeymap 里 `Mod-Alt-ArrowUp/Down`(多光标)、`Alt-ArrowUp/Down`
40619
- * (移动行)、`Shift-Alt-ArrowUp/Down`(复制行)都被占了,三者之上再加
40620
- * Shift 的这两个组合它没有用;浏览器侧 Ctrl+Shift+Alt+方向键也没有默认
40621
- * 行为(选中/滚动都落在更低的组合上)。
40622
- *
40623
- * 没有 `onStepHunk`(面板没开)时返回 false,按键照旧落回 CodeMirror 的
40624
- * 默认处理,不会平白吞掉一个组合键。
40625
- */
40626
- {
40627
- key: "Mod-Shift-Alt-ArrowDown",
40628
- run: () => {
40629
- const step = propsRef.current.onStepHunk;
40630
- if (step === void 0) return false;
40631
- step(1);
40632
- return true;
40633
- },
40634
- preventDefault: true
40635
- }),
40636
- {
40637
- key: "Mod-Shift-Alt-ArrowUp",
40638
- run: () => {
40639
- const step = propsRef.current.onStepHunk;
40640
- if (step === void 0) return false;
40641
- step(-1);
40642
- return true;
40643
- },
40644
- preventDefault: true
41324
+ stepHunk: (delta) => {
41325
+ const step = propsRef.current.onStepHunk;
41326
+ if (step === void 0) return false;
41327
+ step(delta);
41328
+ return true;
40645
41329
  },
40646
- {
40647
- key: "Escape",
40648
- run: () => {
40649
- if (!findOpenRef.current) return false;
40650
- setFindOpen(false);
40651
- return true;
40652
- }
41330
+ closeFind: () => {
41331
+ if (!findOpenRef.current) return false;
41332
+ setFindOpen(false);
41333
+ return true;
40653
41334
  }
40654
- ]),
41335
+ })),
40655
41336
  lineNumbers(),
40656
41337
  highlightActiveLine(),
40657
41338
  indentOnInput(),
@@ -40903,7 +41584,7 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
40903
41584
  const primary = host.querySelectorAll("[class*=\"rvs-ck-\"]").length;
40904
41585
  const fallback = host.querySelectorAll("span[class^=\"rvs-t-\"]").length;
40905
41586
  const count = primary > 0 ? primary : fallback;
40906
- console.info(`[dsh-remote-vs] build 1104-1857 · ${source} · colored tokens: ${count} (${propsRef.current.path})`);
41587
+ console.info(`[dsh-remote-vs] build 1110-1823 · ${source} · colored tokens: ${count} (${propsRef.current.path})`);
40907
41588
  propsRef.current.onTokens?.(count);
40908
41589
  };
40909
41590
  const armFallback = () => {
@@ -48127,8 +48808,8 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
48127
48808
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ConnectionStatusChip, { compact: true }),
48128
48809
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
48129
48810
  className: "rvs-build",
48130
- title: `dsh-remote-vs build 1104-1857`,
48131
- children: "1104-1857"
48811
+ title: `dsh-remote-vs build 1110-1823`,
48812
+ children: "1110-1823"
48132
48813
  }),
48133
48814
  tokenCount !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
48134
48815
  className: "rvs-build",
@@ -52911,13 +53592,13 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
52911
53592
  children: [
52912
53593
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
52913
53594
  className: "rvs-node-icon",
52914
- children: entry.isDir ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FolderIcon, {
53595
+ children: entry.isDir ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExplorerFolderIcon, {
52915
53596
  path: entry.path,
52916
53597
  open: isOpen,
52917
- size: 15
52918
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileIcon, {
53598
+ size: 16
53599
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExplorerFileIcon, {
52919
53600
  path: entry.path,
52920
- size: 15
53601
+ size: 16
52921
53602
  })
52922
53603
  }),
52923
53604
  isRenaming ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RenameInput, {
@@ -54444,14 +55125,14 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
54444
55125
  doCreate(value);
54445
55126
  },
54446
55127
  onCancel: () => setCreating(void 0),
54447
- fileIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileIcon, {
54448
- path: "name.ts",
54449
- size: 15
55128
+ fileIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExplorerFileIcon, {
55129
+ path: "untitled",
55130
+ size: 16
54450
55131
  }),
54451
- folderIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FolderIcon, {
55132
+ folderIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExplorerFolderIcon, {
54452
55133
  path: "name",
54453
55134
  open: false,
54454
- size: 15
55135
+ size: 16
54455
55136
  }),
54456
55137
  t
54457
55138
  }, `create:${row.dir}`);