dsh-remote-vs 0.19.1 → 0.20.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/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",
@@ -25061,6 +25061,625 @@ window.__ModuleLoader__.load({
25061
25061
  return dark ? DARK : LIGHT;
25062
25062
  }
25063
25063
  //#endregion
25064
+ //#region src/client/vsc/file-icons.tsx
25065
+ /** File paper outline (shared by every file-type icon). */
25066
+ 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";
25067
+ /** Top-right fold. */
25068
+ const SHEET_FOLD = "M9.4 1.4v3.6h3.6";
25069
+ /** Extension → look. Brand colours are tuned for readability on dark and light. */
25070
+ const BY_EXT = {
25071
+ ts: {
25072
+ color: "#519aba",
25073
+ mark: "code"
25074
+ },
25075
+ mts: {
25076
+ color: "#519aba",
25077
+ mark: "code"
25078
+ },
25079
+ cts: {
25080
+ color: "#519aba",
25081
+ mark: "code"
25082
+ },
25083
+ tsx: {
25084
+ color: "#4fc3f7",
25085
+ mark: "code"
25086
+ },
25087
+ js: {
25088
+ color: "#d5c93f",
25089
+ mark: "code"
25090
+ },
25091
+ mjs: {
25092
+ color: "#d5c93f",
25093
+ mark: "code"
25094
+ },
25095
+ cjs: {
25096
+ color: "#d5c93f",
25097
+ mark: "code"
25098
+ },
25099
+ jsx: {
25100
+ color: "#4fc3f7",
25101
+ mark: "code"
25102
+ },
25103
+ json: {
25104
+ color: "#d2b13a",
25105
+ mark: "data"
25106
+ },
25107
+ jsonc: {
25108
+ color: "#d2b13a",
25109
+ mark: "data"
25110
+ },
25111
+ json5: {
25112
+ color: "#d2b13a",
25113
+ mark: "data"
25114
+ },
25115
+ md: {
25116
+ color: "#4b9fe3",
25117
+ mark: "doc"
25118
+ },
25119
+ markdown: {
25120
+ color: "#4b9fe3",
25121
+ mark: "doc"
25122
+ },
25123
+ mdx: {
25124
+ color: "#4b9fe3",
25125
+ mark: "doc"
25126
+ },
25127
+ py: {
25128
+ color: "#3572a5",
25129
+ mark: "code",
25130
+ markColor: "#ffd75e"
25131
+ },
25132
+ pyi: {
25133
+ color: "#3572a5",
25134
+ mark: "code",
25135
+ markColor: "#ffd75e"
25136
+ },
25137
+ java: {
25138
+ color: "#e05a4f",
25139
+ mark: "code"
25140
+ },
25141
+ kt: {
25142
+ color: "#a97bff",
25143
+ mark: "code"
25144
+ },
25145
+ c: {
25146
+ color: "#7f9bd6",
25147
+ mark: "code"
25148
+ },
25149
+ h: {
25150
+ color: "#a074c4",
25151
+ mark: "code"
25152
+ },
25153
+ cpp: {
25154
+ color: "#6295cb",
25155
+ mark: "code"
25156
+ },
25157
+ cc: {
25158
+ color: "#6295cb",
25159
+ mark: "code"
25160
+ },
25161
+ cxx: {
25162
+ color: "#6295cb",
25163
+ mark: "code"
25164
+ },
25165
+ hpp: {
25166
+ color: "#6295cb",
25167
+ mark: "code"
25168
+ },
25169
+ hh: {
25170
+ color: "#6295cb",
25171
+ mark: "code"
25172
+ },
25173
+ cs: {
25174
+ color: "#b878d8",
25175
+ mark: "code"
25176
+ },
25177
+ go: {
25178
+ color: "#00add8",
25179
+ mark: "code"
25180
+ },
25181
+ rs: {
25182
+ color: "#dea584",
25183
+ mark: "code"
25184
+ },
25185
+ php: {
25186
+ color: "#8b9be8",
25187
+ mark: "code"
25188
+ },
25189
+ rb: {
25190
+ color: "#e05a4f",
25191
+ mark: "code"
25192
+ },
25193
+ swift: {
25194
+ color: "#e8743b",
25195
+ mark: "code"
25196
+ },
25197
+ lua: {
25198
+ color: "#5a8fe0",
25199
+ mark: "code"
25200
+ },
25201
+ html: {
25202
+ color: "#e8743b",
25203
+ mark: "markup"
25204
+ },
25205
+ htm: {
25206
+ color: "#e8743b",
25207
+ mark: "markup"
25208
+ },
25209
+ vue: {
25210
+ color: "#41b883",
25211
+ mark: "markup"
25212
+ },
25213
+ svelte: {
25214
+ color: "#ff5c33",
25215
+ mark: "markup"
25216
+ },
25217
+ xml: {
25218
+ color: "#f19a38",
25219
+ mark: "markup"
25220
+ },
25221
+ xsl: {
25222
+ color: "#f19a38",
25223
+ mark: "markup"
25224
+ },
25225
+ css: {
25226
+ color: "#42a5f5",
25227
+ mark: "style"
25228
+ },
25229
+ scss: {
25230
+ color: "#e05a8f",
25231
+ mark: "style"
25232
+ },
25233
+ sass: {
25234
+ color: "#e05a8f",
25235
+ mark: "style"
25236
+ },
25237
+ less: {
25238
+ color: "#42a5f5",
25239
+ mark: "style"
25240
+ },
25241
+ yaml: {
25242
+ color: "#a074c4",
25243
+ mark: "data"
25244
+ },
25245
+ yml: {
25246
+ color: "#a074c4",
25247
+ mark: "data"
25248
+ },
25249
+ toml: {
25250
+ color: "#b08b6a",
25251
+ mark: "config"
25252
+ },
25253
+ ini: {
25254
+ color: "#b08b6a",
25255
+ mark: "config"
25256
+ },
25257
+ conf: {
25258
+ color: "#b08b6a",
25259
+ mark: "config"
25260
+ },
25261
+ cfg: {
25262
+ color: "#b08b6a",
25263
+ mark: "config"
25264
+ },
25265
+ env: {
25266
+ color: "#b08b6a",
25267
+ mark: "config"
25268
+ },
25269
+ sh: {
25270
+ color: "#4ec9b0",
25271
+ mark: "shell"
25272
+ },
25273
+ bash: {
25274
+ color: "#4ec9b0",
25275
+ mark: "shell"
25276
+ },
25277
+ zsh: {
25278
+ color: "#4ec9b0",
25279
+ mark: "shell"
25280
+ },
25281
+ fish: {
25282
+ color: "#4ec9b0",
25283
+ mark: "shell"
25284
+ },
25285
+ ps1: {
25286
+ color: "#4ec9b0",
25287
+ mark: "shell"
25288
+ },
25289
+ psm1: {
25290
+ color: "#4ec9b0",
25291
+ mark: "shell"
25292
+ },
25293
+ bat: {
25294
+ color: "#4ec9b0",
25295
+ mark: "shell"
25296
+ },
25297
+ cmd: {
25298
+ color: "#4ec9b0",
25299
+ mark: "shell"
25300
+ },
25301
+ txt: {
25302
+ color: "#9aa0a6",
25303
+ mark: "doc"
25304
+ },
25305
+ log: {
25306
+ color: "#9aa0a6",
25307
+ mark: "doc"
25308
+ },
25309
+ csv: {
25310
+ color: "#7fb36b",
25311
+ mark: "table"
25312
+ },
25313
+ tsv: {
25314
+ color: "#7fb36b",
25315
+ mark: "table"
25316
+ },
25317
+ xlsx: {
25318
+ color: "#7fb36b",
25319
+ mark: "table"
25320
+ },
25321
+ png: {
25322
+ color: "#b18adf",
25323
+ mark: "image"
25324
+ },
25325
+ jpg: {
25326
+ color: "#b18adf",
25327
+ mark: "image"
25328
+ },
25329
+ jpeg: {
25330
+ color: "#b18adf",
25331
+ mark: "image"
25332
+ },
25333
+ gif: {
25334
+ color: "#b18adf",
25335
+ mark: "image"
25336
+ },
25337
+ webp: {
25338
+ color: "#b18adf",
25339
+ mark: "image"
25340
+ },
25341
+ bmp: {
25342
+ color: "#b18adf",
25343
+ mark: "image"
25344
+ },
25345
+ ico: {
25346
+ color: "#b18adf",
25347
+ mark: "image"
25348
+ },
25349
+ avif: {
25350
+ color: "#b18adf",
25351
+ mark: "image"
25352
+ },
25353
+ svg: {
25354
+ color: "#b18adf",
25355
+ mark: "image"
25356
+ },
25357
+ pdf: {
25358
+ color: "#d94f4f",
25359
+ mark: "doc"
25360
+ },
25361
+ zip: {
25362
+ color: "#d9b64a",
25363
+ mark: "archive"
25364
+ },
25365
+ rar: {
25366
+ color: "#d9b64a",
25367
+ mark: "archive"
25368
+ },
25369
+ "7z": {
25370
+ color: "#d9b64a",
25371
+ mark: "archive"
25372
+ },
25373
+ tar: {
25374
+ color: "#d9b64a",
25375
+ mark: "archive"
25376
+ },
25377
+ gz: {
25378
+ color: "#d9b64a",
25379
+ mark: "archive"
25380
+ },
25381
+ tgz: {
25382
+ color: "#d9b64a",
25383
+ mark: "archive"
25384
+ },
25385
+ bz2: {
25386
+ color: "#d9b64a",
25387
+ mark: "archive"
25388
+ },
25389
+ xz: {
25390
+ color: "#d9b64a",
25391
+ mark: "archive"
25392
+ },
25393
+ lock: {
25394
+ color: "#8b949e",
25395
+ mark: "lock"
25396
+ },
25397
+ dockerfile: {
25398
+ color: "#2496ed",
25399
+ mark: "box"
25400
+ },
25401
+ docker: {
25402
+ color: "#2496ed",
25403
+ mark: "box"
25404
+ },
25405
+ gitignore: {
25406
+ color: "#e8703a",
25407
+ mark: "git"
25408
+ },
25409
+ gitattributes: {
25410
+ color: "#e8703a",
25411
+ mark: "git"
25412
+ },
25413
+ gitmodules: {
25414
+ color: "#e8703a",
25415
+ mark: "git"
25416
+ },
25417
+ exe: {
25418
+ color: "#8b949e",
25419
+ mark: "box"
25420
+ },
25421
+ dll: {
25422
+ color: "#8b949e",
25423
+ mark: "box"
25424
+ },
25425
+ so: {
25426
+ color: "#8b949e",
25427
+ mark: "box"
25428
+ },
25429
+ dylib: {
25430
+ color: "#8b949e",
25431
+ mark: "box"
25432
+ }
25433
+ };
25434
+ /** Exact file name → look (extension-less files and conventional names hit here first). */
25435
+ const BY_NAME = {
25436
+ dockerfile: {
25437
+ color: "#2496ed",
25438
+ mark: "box"
25439
+ },
25440
+ "docker-compose.yml": {
25441
+ color: "#2496ed",
25442
+ mark: "box"
25443
+ },
25444
+ "docker-compose.yaml": {
25445
+ color: "#2496ed",
25446
+ mark: "box"
25447
+ },
25448
+ makefile: {
25449
+ color: "#b08b6a",
25450
+ mark: "config"
25451
+ },
25452
+ gnumakefile: {
25453
+ color: "#b08b6a",
25454
+ mark: "config"
25455
+ },
25456
+ "cmakelists.txt": {
25457
+ color: "#b08b6a",
25458
+ mark: "config"
25459
+ },
25460
+ ".gitignore": {
25461
+ color: "#e8703a",
25462
+ mark: "git"
25463
+ },
25464
+ ".gitattributes": {
25465
+ color: "#e8703a",
25466
+ mark: "git"
25467
+ },
25468
+ ".gitmodules": {
25469
+ color: "#e8703a",
25470
+ mark: "git"
25471
+ },
25472
+ ".npmrc": {
25473
+ color: "#b08b6a",
25474
+ mark: "config"
25475
+ },
25476
+ ".editorconfig": {
25477
+ color: "#b08b6a",
25478
+ mark: "config"
25479
+ },
25480
+ ".prettierrc": {
25481
+ color: "#b08b6a",
25482
+ mark: "config"
25483
+ },
25484
+ "package-lock.json": {
25485
+ color: "#8b949e",
25486
+ mark: "lock"
25487
+ },
25488
+ "pnpm-lock.yaml": {
25489
+ color: "#8b949e",
25490
+ mark: "lock"
25491
+ },
25492
+ "yarn.lock": {
25493
+ color: "#8b949e",
25494
+ mark: "lock"
25495
+ },
25496
+ license: {
25497
+ color: "#9aa0a6",
25498
+ mark: "doc"
25499
+ },
25500
+ readme: {
25501
+ color: "#4b9fe3",
25502
+ mark: "doc"
25503
+ }
25504
+ };
25505
+ /** Unrecognised file: grey document. */
25506
+ const FALLBACK = {
25507
+ color: "#8b949e",
25508
+ mark: "doc"
25509
+ };
25510
+ /** Drawing commands for a category mark (coordinates sit on the sheet's lower half). */
25511
+ const MARKS = {
25512
+ 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" })] }),
25513
+ markup: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
25514
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.8 7.9 4.4 9.8l1.4 1.9" }),
25515
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8.6 7.5l-1.6 4.6" }),
25516
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M10.2 7.9l1.4 1.9-1.4 1.9" })
25517
+ ] }),
25518
+ 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" })] }),
25519
+ 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" })] }),
25520
+ doc: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.2 7.8h5.6M5.2 9.7h5.6M5.2 11.6h3.6" }),
25521
+ image: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25522
+ cx: "6.4",
25523
+ cy: "8.1",
25524
+ r: ".85",
25525
+ fill: "currentColor",
25526
+ stroke: "none"
25527
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25528
+ d: "M4.8 12.2l2.1-2.6 1.5 1.7 1.2-1.3 1.8 2.2Z",
25529
+ fill: "currentColor",
25530
+ stroke: "none"
25531
+ })] }),
25532
+ archive: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
25533
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4.8 7.6h6.4v4.6H4.8z" }),
25534
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4.8 9h6.4" }),
25535
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7.2 7.6v1.4M7.2 10.4h1.6" })
25536
+ ] }),
25537
+ 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" })] }),
25538
+ config: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
25539
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5 8.2h6M5 11h6" }),
25540
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25541
+ cx: "7",
25542
+ cy: "8.2",
25543
+ r: "1.05"
25544
+ }),
25545
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25546
+ cx: "9.4",
25547
+ cy: "11",
25548
+ r: "1.05"
25549
+ })
25550
+ ] }),
25551
+ git: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
25552
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25553
+ cx: "6",
25554
+ cy: "7.7",
25555
+ r: "1"
25556
+ }),
25557
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
25558
+ cx: "9.8",
25559
+ cy: "10.9",
25560
+ r: "1"
25561
+ }),
25562
+ /* @__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" })
25563
+ ] }),
25564
+ lock: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
25565
+ x: "5.4",
25566
+ y: "8.6",
25567
+ width: "5.2",
25568
+ height: "3.8",
25569
+ rx: "1"
25570
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M6.6 8.6V7.4a1.4 1.4 0 0 1 2.8 0v1.2" })] }),
25571
+ 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" }) }),
25572
+ 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" })] })
25573
+ };
25574
+ /** Basename of a path that may use either separator. */
25575
+ function baseName$1(path) {
25576
+ const normalized = path.replace(/\\/g, "/");
25577
+ return normalized.slice(normalized.lastIndexOf("/") + 1);
25578
+ }
25579
+ /** Resolve a path's look from its name / extension. */
25580
+ function lookOf(path) {
25581
+ const name = baseName$1(path).toLowerCase();
25582
+ const named = BY_NAME[name];
25583
+ if (named !== void 0) return named;
25584
+ if (name.startsWith(".env")) return {
25585
+ color: "#b08b6a",
25586
+ mark: "config"
25587
+ };
25588
+ const dot = name.lastIndexOf(".");
25589
+ if (dot <= 0) return FALLBACK;
25590
+ return BY_EXT[name.slice(dot + 1)] ?? FALLBACK;
25591
+ }
25592
+ /**
25593
+ * Coloured file-type icon: sheet + top-right fold + bottom-right category mark.
25594
+ *
25595
+ * At 16 px this reads better than two-letter badges and does not depend on font
25596
+ * rendering.
25597
+ */
25598
+ function FileTypeIcon(props) {
25599
+ const size = props.size ?? 16;
25600
+ const look = lookOf(props.path);
25601
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
25602
+ width: size,
25603
+ height: size,
25604
+ viewBox: "0 0 16 16",
25605
+ fill: "none",
25606
+ className: props.className,
25607
+ "aria-hidden": "true",
25608
+ children: [
25609
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25610
+ d: SHEET,
25611
+ fill: look.color,
25612
+ fillOpacity: .14,
25613
+ stroke: look.color,
25614
+ strokeWidth: 1,
25615
+ strokeLinejoin: "round"
25616
+ }),
25617
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25618
+ d: SHEET_FOLD,
25619
+ stroke: look.color,
25620
+ strokeWidth: 1,
25621
+ strokeLinejoin: "round"
25622
+ }),
25623
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("g", {
25624
+ stroke: look.markColor ?? look.color,
25625
+ strokeWidth: 1.15,
25626
+ strokeLinecap: "round",
25627
+ strokeLinejoin: "round",
25628
+ style: { color: look.markColor ?? look.color },
25629
+ children: MARKS[look.mark]
25630
+ })
25631
+ ]
25632
+ });
25633
+ }
25634
+ Object.keys(BY_EXT).sort();
25635
+ /**
25636
+ * Amber folder icon. The folder colour is content colour, in the same scheme as
25637
+ * the file types — it does not follow the skin.
25638
+ */
25639
+ function FolderGlyph(props) {
25640
+ const size = props.size ?? 16;
25641
+ return props.open === true ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
25642
+ width: size,
25643
+ height: size,
25644
+ viewBox: "0 0 16 16",
25645
+ fill: "none",
25646
+ className: props.className,
25647
+ "aria-hidden": "true",
25648
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25649
+ d: "M1.9 12V4.3c0-.6.4-1 1-1h3.2l1.5 1.7h5.6c.6 0 1 .4 1 1v5.4",
25650
+ fill: "#c69a3f",
25651
+ stroke: "#a8781c",
25652
+ strokeWidth: ".9",
25653
+ strokeLinejoin: "round"
25654
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25655
+ 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",
25656
+ fill: "#e7b95d",
25657
+ stroke: "#a8781c",
25658
+ strokeWidth: ".9",
25659
+ strokeLinejoin: "round"
25660
+ })]
25661
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
25662
+ width: size,
25663
+ height: size,
25664
+ viewBox: "0 0 16 16",
25665
+ fill: "none",
25666
+ className: props.className,
25667
+ "aria-hidden": "true",
25668
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25669
+ 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",
25670
+ fill: "#d9ab4e",
25671
+ stroke: "#a8781c",
25672
+ strokeWidth: ".9",
25673
+ strokeLinejoin: "round"
25674
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
25675
+ d: "M2.6 5.3h10.8",
25676
+ stroke: "#a8781c",
25677
+ strokeWidth: ".9",
25678
+ opacity: ".45"
25679
+ })]
25680
+ });
25681
+ }
25682
+ //#endregion
25064
25683
  //#region src/client/vsc/kit.tsx
25065
25684
  /**
25066
25685
  * The VS Code-style widget kit shared by every new surface: icons, the
@@ -25069,11 +25688,17 @@ window.__ModuleLoader__.load({
25069
25688
  * ships the same split, and the confirm dialogs are what guard destructive
25070
25689
  * remote git verbs).
25071
25690
  *
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.
25691
+ * Icon sourcing has two tiers. `FileIcon` / `FolderIcon` paint the plain glyphs
25692
+ * below (search hits, SCM rows, commit panes, download rows — list chrome where
25693
+ * one neutral outline reads best). `ExplorerFileIcon` / `ExplorerFolderIcon`
25694
+ * paint the COLOURED type set ported from dsh-sidebar in `./file-icons.tsx`, so
25695
+ * the remote directory tree looks like the local sidebar's tree: one sheet
25696
+ * whose colour and mark carry the file type, and an amber folder that opens.
25697
+ *
25698
+ * Every tier still prefers the host service when one is published (the
25699
+ * better-sidebar lineage's `fileIcon` / `folderIcon`: host classifier plus any
25700
+ * registered icon theme). dsh-sidebar itself publishes none today, so in a
25701
+ * dsh-sidebar profile the SVG sets above are what actually render.
25077
25702
  */
25078
25703
  function svg(size, children, className) {
25079
25704
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
@@ -25330,6 +25955,28 @@ window.__ModuleLoader__.load({
25330
25955
  className: props.className
25331
25956
  });
25332
25957
  }
25958
+ /** Explorer file row: host glyph when available, else the coloured type icon. */
25959
+ function ExplorerFileIcon(props) {
25960
+ const size = props.size ?? 16;
25961
+ const fromHost = tryService(() => iconService?.fileIcon(props.path, size));
25962
+ if (fromHost !== void 0) return fromHost;
25963
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileTypeIcon, {
25964
+ path: props.path,
25965
+ size,
25966
+ className: props.className
25967
+ });
25968
+ }
25969
+ /** Explorer directory row: host glyph when available, else the amber folder. */
25970
+ function ExplorerFolderIcon(props) {
25971
+ const size = props.size ?? 16;
25972
+ const fromHost = tryService(() => iconService?.folderIcon(props.path, props.open, size));
25973
+ if (fromHost !== void 0) return fromHost;
25974
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FolderGlyph, {
25975
+ open: props.open,
25976
+ size,
25977
+ className: props.className
25978
+ });
25979
+ }
25333
25980
  const IMAGE_EXTS = /* @__PURE__ */ new Set([
25334
25981
  "png",
25335
25982
  "jpg",
@@ -40903,7 +41550,7 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
40903
41550
  const primary = host.querySelectorAll("[class*=\"rvs-ck-\"]").length;
40904
41551
  const fallback = host.querySelectorAll("span[class^=\"rvs-t-\"]").length;
40905
41552
  const count = primary > 0 ? primary : fallback;
40906
- console.info(`[dsh-remote-vs] build 1104-1857 · ${source} · colored tokens: ${count} (${propsRef.current.path})`);
41553
+ console.info(`[dsh-remote-vs] build 1109-1109 · ${source} · colored tokens: ${count} (${propsRef.current.path})`);
40907
41554
  propsRef.current.onTokens?.(count);
40908
41555
  };
40909
41556
  const armFallback = () => {
@@ -48127,8 +48774,8 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
48127
48774
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ConnectionStatusChip, { compact: true }),
48128
48775
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
48129
48776
  className: "rvs-build",
48130
- title: `dsh-remote-vs build 1104-1857`,
48131
- children: "1104-1857"
48777
+ title: `dsh-remote-vs build 1109-1109`,
48778
+ children: "1109-1109"
48132
48779
  }),
48133
48780
  tokenCount !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
48134
48781
  className: "rvs-build",
@@ -52911,13 +53558,13 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
52911
53558
  children: [
52912
53559
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
52913
53560
  className: "rvs-node-icon",
52914
- children: entry.isDir ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FolderIcon, {
53561
+ children: entry.isDir ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExplorerFolderIcon, {
52915
53562
  path: entry.path,
52916
53563
  open: isOpen,
52917
- size: 15
52918
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileIcon, {
53564
+ size: 16
53565
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExplorerFileIcon, {
52919
53566
  path: entry.path,
52920
- size: 15
53567
+ size: 16
52921
53568
  })
52922
53569
  }),
52923
53570
  isRenaming ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RenameInput, {
@@ -54444,14 +55091,14 @@ Integer Float Double Long Int32 Int64 Uint8 uint32_t int32_t uint64_t int64_t si
54444
55091
  doCreate(value);
54445
55092
  },
54446
55093
  onCancel: () => setCreating(void 0),
54447
- fileIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FileIcon, {
54448
- path: "name.ts",
54449
- size: 15
55094
+ fileIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExplorerFileIcon, {
55095
+ path: "untitled",
55096
+ size: 16
54450
55097
  }),
54451
- folderIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FolderIcon, {
55098
+ folderIcon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExplorerFolderIcon, {
54452
55099
  path: "name",
54453
55100
  open: false,
54454
- size: 15
55101
+ size: 16
54455
55102
  }),
54456
55103
  t
54457
55104
  }, `create:${row.dir}`);