@@ -2228,6 +2228,40 @@ declare module 'vscode' {
22282228 * such as `[CodeActionKind.Refactor.Extract.append('function'), CodeActionKind.Refactor.Extract.append('constant'), ...]`.
22292229 */
22302230 readonly providedCodeActionKinds ?: ReadonlyArray < CodeActionKind > ;
2231+
2232+ /**
2233+ * Static documentation for a class of code actions.
2234+ *
2235+ * Documentation from the provider is shown in the code actions menu if either:
2236+ *
2237+ * - Code actions of `kind` are requested by VS Code. In this case, VS Code will show the documentation that
2238+ * most closely matches the requested code action kind. For example, if a provider has documentation for
2239+ * both `Refactor` and `RefactorExtract`, when the user requests code actions for `RefactorExtract`,
2240+ * VS Code will use the documentation for `RefactorExtract` instead of the documentation for `Refactor`.
2241+ *
2242+ * - Any code actions of `kind` are returned by the provider.
2243+ *
2244+ * At most one documentation entry will be shown per provider.
2245+ */
2246+ readonly documentation ?: ReadonlyArray < {
2247+ /**
2248+ * The kind of the code action being documented.
2249+ *
2250+ * If the kind is generic, such as `CodeActionKind.Refactor`, the documentation will be shown whenever any
2251+ * refactorings are returned. If the kind if more specific, such as `CodeActionKind.RefactorExtract`, the
2252+ * documentation will only be shown when extract refactoring code actions are returned.
2253+ */
2254+ readonly kind : CodeActionKind ;
2255+
2256+ /**
2257+ * Command that displays the documentation to the user.
2258+ *
2259+ * This can display the documentation directly in VS Code or open a website using [`env.openExternal`](#env.openExternal);
2260+ *
2261+ * The title of this documentation code action is taken from [`Command.title`](#Command.title)
2262+ */
2263+ readonly command : Command ;
2264+ } > ;
22312265 }
22322266
22332267 /**
0 commit comments