Import lib/remote-ssh/index.js

This commit is contained in:
QQ 2026-11-12 14:55:32 +08:00
parent d5cafbf1a8
commit 4705c5640c
1 changed files with 5 additions and 1 deletions

View File

@ -4452,7 +4452,11 @@ function apply(ctx, config) {
const rawConfig = config && typeof config === "object" ? config : {};
// ---- 先判断这一代 settings 用哪套 API(issue #34:0.1.5/0.1.6 两套都有)----
const entryId = ownEntryId(ctx, name) || NS;
// [workspace-groups-remote patch] Inside the merged bundle there is no
// loader row named dsh-remote-ssh: the settings entry lives on the
// bundle's own row, whose composed plugin exports this plugin's Config.
// Resolve that row before falling back to the standalone namespace.
const entryId = ownEntryId(ctx, name) || ownEntryId(ctx, "workspace-groups-remote") || NS;
const settingsApi = settingsApiMode(svc, entryId);
// ---- 新版(0.1.7-rc.2+):数据在本插件 loader 行的 Config 里 ----