From e556ebb378d5f641e1d5cc8be85e47d730bec308 Mon Sep 17 00:00:00 2001 From: xlli67 Date: Wed, 30 Sep 2026 13:08:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(service):=20SIDEBAR=5FFEATURES=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=20rightActions=20=E8=83=BD=E5=8A=9B=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rightActions 字段已加入 TabDescriptor,但 SIDEBAR_FEATURES 数组遗漏了 能力声明,导致消费方 features.includes('rightActions') 探测返回 false, 误走降级路径。 --- src/client/service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/service.ts b/src/client/service.ts index fd8731ad..dfa73d39 100644 --- a/src/client/service.ts +++ b/src/client/service.ts @@ -667,6 +667,8 @@ export const SIDEBAR_SERVICE_VERSION = '0.24.1' * external file-tree icons overriding the built-in glyphs, matched by * extension (`exts`), exact file name (`names`), or directory name * (`folderNames`). + * - 'rightActions' (v0.25.0): TabDescriptor.rightActions — the active tab's + * right-aligned action area rendered at the tab strip's right end. * * v0.19.0 REMOVED 'floatWindows': the free-window feature is gone (DSH 0.1.5 * owns the right column, so the plugin keeps only its bottom workbench). @@ -684,6 +686,7 @@ export const SIDEBAR_FEATURES = [ 'urlTarget', 'settingSelect', 'fileIcons', + 'rightActions', ] as const /** Run one plugin callback; a throw is logged and never breaks the caller. */