@zhangfengshun/dsh-remote-ssh 2.1.3 → 2.1.4
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/index.js +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import { join, dirname } from "node:path";
|
|
|
19
19
|
/** Plugin identity for cordis.yml rows. */
|
|
20
20
|
const name = "@zhangfengshun/dsh-remote-ssh";
|
|
21
21
|
/** Services required before mounting. */
|
|
22
|
-
const inject = ["webServer", "subprocess", "tools"];
|
|
22
|
+
const inject = ["webServer", "subprocess", "tools", "workspaceRegistry"];
|
|
23
23
|
/** Composition config schema(本插件暂无配置项)。 */
|
|
24
24
|
const Config = z.object({});
|
|
25
25
|
|
|
@@ -645,7 +645,7 @@ function remoteWorkspaceReadme(profileName, remotePath) {
|
|
|
645
645
|
|
|
646
646
|
function apply(ctx, config) {
|
|
647
647
|
const subprocess = ctx.subprocess;
|
|
648
|
-
const workspaceRegistry = ctx.
|
|
648
|
+
const workspaceRegistry = ctx.workspaceRegistry;
|
|
649
649
|
const terminals = new Map();
|
|
650
650
|
let nextTerminalId = 1;
|
|
651
651
|
|
|
@@ -1408,7 +1408,7 @@ function apply(ctx, config) {
|
|
|
1408
1408
|
// 作标题;workspaceRegistry.create 只对新建记录应用 title,旧记录会被原样返回。
|
|
1409
1409
|
// 这里仅在标题等于镜像目录 basename(明显是旧 bug 产物)时修复,不覆盖用户自定义标题。
|
|
1410
1410
|
function healWorkspaceTitles() {
|
|
1411
|
-
const reg =
|
|
1411
|
+
const reg = workspaceRegistry;
|
|
1412
1412
|
if (!reg || typeof reg.resolveByPath !== "function") return;
|
|
1413
1413
|
const wsList = settingsFace.read().workspaces;
|
|
1414
1414
|
for (const w of wsList) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhangfengshun/dsh-remote-ssh",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "DSH web plugin: VSCode Remote-SSH-like remote development (SSH to supercomputers/servers, remote workspace, file explorer, integrated terminal), integrated with dsh-better-sidebar and DSH settings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|