@linkdesk/contracts 0.1.12 → 0.1.13
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/linkdesk.d.ts +12 -0
- package/package.json +1 -1
package/linkdesk.d.ts
CHANGED
|
@@ -967,6 +967,18 @@ export interface StatusBarItem {
|
|
|
967
967
|
}
|
|
968
968
|
export interface PluginManifest {
|
|
969
969
|
$schema?: string;
|
|
970
|
+
/**
|
|
971
|
+
* 插件身份——**发布后永不可变**(对标 VS Code 的 `publisher.name`)。安装目录
|
|
972
|
+
* `{userData}/plugins/<pluginId>/`、分发件名 `<pluginId>.linkdesk-plugin`、市场目录去重键、
|
|
973
|
+
* 卸载墓碑键、更新对账全部以它为准。
|
|
974
|
+
*
|
|
975
|
+
* L7(E6#98g)起**要求显式声明**:不声明时退回「项目目录名」兜底(`derivePluginId`),而仓库名
|
|
976
|
+
* 与本地目录名是自由的——目录名一改身份就跟着改,且五条后果(安装目录并存两份 / 墓碑对不上 /
|
|
977
|
+
* 市场出现两条 / 更新链静默断 / 插件数据看似丢失)没有一条会报错。兜底路径保留仅为向后兼容
|
|
978
|
+
* 仓外的存量第三方插件。
|
|
979
|
+
* 形状约束 `^[A-Za-z0-9][A-Za-z0-9._-]*$`(`SAFE_PLUGIN_ID`,防路径穿越直通文件系统)。
|
|
980
|
+
*/
|
|
981
|
+
pluginId?: string;
|
|
970
982
|
/** @deprecated 使用 contributes + tabBehavior 等声明字段代替——贡献点由 manifest 的实际声明字段检测(对标 VS Code contributes) */
|
|
971
983
|
type?: PluginType;
|
|
972
984
|
core?: boolean;
|