From a12cd5e621b0c558af8faf5a1aab32f2272e0c9a Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Thu, 19 Nov 2026 18:54:14 +0800 Subject: [PATCH] =?UTF-8?q?docs(plugins):=20Declared()=20=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E5=86=99=E6=98=8E=E6=9E=84=E5=BB=BA=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E8=80=85=E7=9A=84=E8=B0=83=E8=AF=95=E5=87=86=E5=A4=87=E5=B7=B2?= =?UTF-8?q?=E5=91=88=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #1837 起,构建窗口里目标的“调试”和标题栏对提供者运行配置的“调试”经 PlanBuildDebug/DecodeBuildDebug 让提供者准备程序,再启动运行声明的本插件适配器;注释的“尚未呈现”清单里仍列着它,Core 插件文档据此写错。 --- desktop/internal/pluginhost/pluginhost.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/desktop/internal/pluginhost/pluginhost.go b/desktop/internal/pluginhost/pluginhost.go index 4edeef3c8..82070a1b1 100644 --- a/desktop/internal/pluginhost/pluginhost.go +++ b/desktop/internal/pluginhost/pluginhost.go @@ -99,7 +99,10 @@ type Capabilities map[string][]int // - buildSystems and buildProviders: the Build window detects instances, // loads provider models, resolves the ordered executable candidates Core // returns, runs command and provider tasks, prepares application targets -// and discovers and runs provider tests. Run on Current File asks the +// and discovers and runs provider tests. Debug on a target, or on a +// provider run configuration in the title bar, has the provider prepare +// the program of a run that names the plugin's own adapter (debug.adapter) +// and starts that adapter on it. Run on Current File asks the // providers of version 1 for the file's entrypoints and saves the first as a // run configuration. Run sessions a backend starts are owned by the host. // - runConfigurationTypes: the Run/Debug Configurations dialog lists the @@ -147,9 +150,8 @@ type Capabilities map[string][]int // - tool discovery for system commands reads PATH and the plugin's installed // command directories only; a plan that depends on a project toolchain or a // user override must use a tool launch. -// - build provider debug preparation, model inputs, native configuration, -// inline test reports and runtime debug; build system instance options and -// task preparations. +// - build provider model inputs, native configuration, inline test reports +// and runtime debug; build system instance options and task preparations. // - ui commands that belong to no tool window. // - VCS provider annotation, file history, file operations, metadata // watching, authentication, history entry diffs, status in the project tree