@linkdesk/plugin-sdk 0.1.73 → 0.1.74
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/README.md +2 -2
- package/dev-host/linkdesk-mock.generated.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npm install -D @linkdesk/plugin-sdk
|
|
|
18
18
|
> 自动生成,**勿手改**——由 `scripts/generate-api-cheatsheet.mjs` 从 `@linkdesk/contracts` 的 `linkdesk.d.ts` 现读产出,
|
|
19
19
|
> `npm run check` 机械盯漂。完整签名与逐方法说明见 `linkdesk.d.ts` 本体(IDE 里可直接跳转)。
|
|
20
20
|
|
|
21
|
-
**16 个域接口 → 47 个命名空间 /
|
|
21
|
+
**16 个域接口 → 47 个命名空间 / 256 个方法**,全部经 `window.linkdesk.<命名空间>.<方法>` 调用。 (plus 1 deprecated alias/es `config`, not counted twice)
|
|
22
22
|
|
|
23
23
|
| Namespace | Methods | Method | Notes |
|
|
24
24
|
|:--|:--:|:--|:--|
|
|
@@ -30,7 +30,7 @@ npm install -D @linkdesk/plugin-sdk
|
|
|
30
30
|
| `appearance` | 2 | `importImage` `revealStorage` | 外观资产——本地选图拷贝入库(受控来源——用户任选路径不能 file:// 直读) |
|
|
31
31
|
| `storage` ⚠️ | 2 | `revealCache` `cacheDir` | —— |
|
|
32
32
|
| `tabs` | 9 | `create` `openOrFocus` `focus` `close` `focusBySourceId` `updateLabelBySourceId` `closeBySourceId` `onDidChangeActiveTab` `list` | —— |
|
|
33
|
-
| `keybindings` |
|
|
33
|
+
| `keybindings` | 13 | `getKeybindings` `getConflicts` `registerKeybinding` `saveUserKeybindings` `removeKeybindingForCommand` `resetKeybindingToDefault` `clearKeybindingForCommand` `findKeybindingForCommand` `setKeybindingCaptureActive` `keyboardEventToKeyString` `onChange` `syncToMainProcess`° `onForwardedEvent`° | —— |
|
|
34
34
|
| `notifications` | 3 | `show` `list` `subscribe` | 通知——插件弹通知(唯一通知面 = 铃铛宽通知面板,右下窄卡链路已整删),对标 VS Code vscode.wind… |
|
|
35
35
|
| `menu` | 2 | `registerItems` `getItems` | 菜单——插件声明式读写 |
|
|
36
36
|
| `contextKey` | 1 | `set` | ContextKey——插件 SET 状态供壳 when 子句读 |
|
|
@@ -103,6 +103,7 @@ export const linkdeskMock: Record<string, unknown> = {
|
|
|
103
103
|
saveUserKeybindings: async (..._args: unknown[]) => { console.info("[linkdesk-mock] keybindings.saveUserKeybindings", ..._args); },
|
|
104
104
|
removeKeybindingForCommand: async (..._args: unknown[]) => { console.info("[linkdesk-mock] keybindings.removeKeybindingForCommand", ..._args); },
|
|
105
105
|
resetKeybindingToDefault: async (..._args: unknown[]) => { console.info("[linkdesk-mock] keybindings.resetKeybindingToDefault", ..._args); },
|
|
106
|
+
clearKeybindingForCommand: async (..._args: unknown[]) => { console.info("[linkdesk-mock] keybindings.clearKeybindingForCommand", ..._args); },
|
|
106
107
|
findKeybindingForCommand: async (..._args: unknown[]) => { console.info("[linkdesk-mock] keybindings.findKeybindingForCommand", ..._args); },
|
|
107
108
|
setKeybindingCaptureActive: async (..._args: unknown[]) => { console.info("[linkdesk-mock] keybindings.setKeybindingCaptureActive", ..._args); },
|
|
108
109
|
keyboardEventToKeyString: (..._args: unknown[]) => { console.info("[linkdesk-mock] keybindings.keyboardEventToKeyString", ..._args); return ""; },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkdesk/plugin-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.74",
|
|
4
4
|
"description": "@linkdesk/plugin-sdk——LinkDesk 插件作者 SDK(对标 @types/vscode):window.linkdesk.* 类型 + 一键 build(.linkdesk-plugin) + dev 宿主 + plugin.json 验证 + eslint 门禁(E6#54d)。作者 npm i 后零壳源码依赖。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|