@linkdesk/plugin-sdk 0.1.53 → 0.1.54
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 +21 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,44 +24,44 @@ npm install -D @linkdesk/plugin-sdk
|
|
|
24
24
|
|:--|:--:|:--|:--|
|
|
25
25
|
| `commands` | 5 | `execute` `executeCommand` `registerCommand` `unregisterCommands` `getCommands` | 命令——对标 VS Code vscode.commands |
|
|
26
26
|
| `configuration` | 15 | `get` `set` `getSchema` `onChange` `getConfigurationContributions` `inspectConfiguration` `getUserSettings` `onDidChangeConfiguration` `onPluginLifecycleChange` `consumeSettingsGroup` `onRequestSettingsGroup` `consumeScrollToSetting` `onRequestScrollToSetting` `consumeOpenKeybindings` `onRequestOpenKeybindings` | 配置—新名——对标 VS Code vscode.workspace.getConfiguration |
|
|
27
|
-
| `config` | 15 | (废弃别名 → `configuration`) | @deprecated
|
|
27
|
+
| `config` | 15 | (废弃别名 → `configuration`) | @deprecated 向后兼容别名,新代码用 configuration |
|
|
28
28
|
| `theme` | 11 | `getCurrent` `getAvailable` `apply` `listRecipes` `getActive` `getEffectiveTokens` `setRecipe` `setColorway` `resetAppearance` `resetMix` `getBaselineSeeds` | —— |
|
|
29
29
|
| `language` | 5 | `getCurrent` `getAvailable` `set` `getInitial` `onChange` | —— |
|
|
30
|
-
| `appearance` | 2 | `importImage` `revealStorage` |
|
|
30
|
+
| `appearance` | 2 | `importImage` `revealStorage` | 外观资产——本地选图拷贝入库(受控来源——用户任选路径不能 file:// 直读) |
|
|
31
31
|
| `tabs` | 9 | `create` `openOrFocus` `focus` `close` `focusBySourceId` `updateLabelBySourceId` `closeBySourceId` `onDidChangeActiveTab` `list` | —— |
|
|
32
32
|
| `keybindings` | 12 | `getKeybindings` `getConflicts` `registerKeybinding` `saveUserKeybindings` `removeKeybindingForCommand` `resetKeybindingToDefault` `findKeybindingForCommand` `setKeybindingCaptureActive` `keyboardEventToKeyString` `onChange` `syncToMainProcess`° `onForwardedEvent`° | —— |
|
|
33
|
-
| `notifications` | 3 | `show` `list` `subscribe` |
|
|
34
|
-
| `menu` | 2 | `registerItems` `getItems` |
|
|
35
|
-
| `contextKey` | 1 | `set` |
|
|
36
|
-
| `dialog` | 5 | `confirm` `alert` `open` `openFile` `confirmContent` |
|
|
37
|
-
| `quickPick` | 1 | `show` |
|
|
38
|
-
| `quickPickHost` | 6 | `registerHost` `onShow` `select` `highlight` `close` `itemAction` |
|
|
39
|
-
| `dialogHost` | 5 | `onShow` `current` `pending` `confirm` `cancel` |
|
|
40
|
-
| `floatingPanelHost` | 4 | `onShow` `action` `registerBoundsHost` `getBounds` |
|
|
33
|
+
| `notifications` | 3 | `show` `list` `subscribe` | 通知——插件弹通知(唯一通知面 = 铃铛宽通知面板,右下窄卡链路已整删),对标 VS Code vscode.wind… |
|
|
34
|
+
| `menu` | 2 | `registerItems` `getItems` | 菜单——插件声明式读写 |
|
|
35
|
+
| `contextKey` | 1 | `set` | ContextKey——插件 SET 状态供壳 when 子句读 |
|
|
36
|
+
| `dialog` | 5 | `confirm` `alert` `open` `openFile` `confirmContent` | 弹窗——确认/提示/文件选择 |
|
|
37
|
+
| `quickPick` | 1 | `show` | 插件 quickPick 选择器——池内本地桥(零 IPC,QuickPickHost 渲染) |
|
|
38
|
+
| `quickPickHost` | 6 | `registerHost` `onShow` `select` `highlight` `close` `itemAction` | QuickPick 宿主渲染桥——池 QuickPickHost 消费(壳 preload 无此面) |
|
|
39
|
+
| `dialogHost` | 5 | `onShow` `current` `pending` `confirm` `cancel` | Dialog 哑渲染订阅——池 DialogHost 消费(壳 preload 无此面) |
|
|
40
|
+
| `floatingPanelHost` | 4 | `onShow` `action` `registerBoundsHost` `getBounds` | (类型 B):悬浮面板哑渲染订阅——池 FloatingPanelHost 消费(壳 preload 无此面) |
|
|
41
41
|
| `serial` | 11 | `listPorts` `getStatus` `openPort` `closePort` `sendData` `sendText` `setDtr` `setRts` `onData` `onStats` `onSystem` | 串口——读/写/监听,对标 VS Code SerialPort API |
|
|
42
42
|
| `clipboard` | 3 | `readText` `writeText` `writeFileList` | 剪贴板——读/写系统剪贴板 |
|
|
43
|
-
| `p2p` | 2 | `send` `on` |
|
|
43
|
+
| `p2p` | 2 | `send` `on` | p2p 插件间定向推流——和 bridge.broadcast 同模式(fire-and-forget) |
|
|
44
44
|
| `events` | 4 | `on` `emit` `heartbeat`° `notifyTheme`° | 通用事件订阅 + 发布——插件间数据管道 |
|
|
45
|
-
| `pluginState` | 3 | `get` `set` `onChange` |
|
|
45
|
+
| `pluginState` | 3 | `get` `set` `onChange` | 插件持久化存储——集中缓存 + 文件持久化 |
|
|
46
46
|
| `workspace` | 8 | `getFolders` `getActive` `setActive` `openFolder` `addFolder` `removeFolder` `onDidChangeFolders` `onDidChangeActiveWorkspace` | 工作区——池 preload 注入(壳侧经 WorkspaceService 直用) |
|
|
47
47
|
| `filesystem` | 12 | `readTextFile` `writeTextFile` `exists` `createDir` `copy` `rename` `remove` `listDir` `readBinaryFile` `writeBinaryFile` `watch` `readdir`° | 文件系统——插件读写(路径校验由主进程执行) |
|
|
48
48
|
| `path` | 6 | `appDataDir`° `normalize` `join` `basename` `dirname` `extname` | 路径工具——壳/池双端注入(editor/file-tree 池插件消费 normalize/join 等) |
|
|
49
49
|
| `env` | 1 | `get` | 环境信息——对标 VS Code ExtensionContext |
|
|
50
|
-
| `search` | 1 | `searchFiles` |
|
|
51
|
-
| `encoding` | 3 | `detect` `decode` `encode` |
|
|
52
|
-
| `decorations` | 4 | `registerProvider` `unregisterProvider` `getDecoration` `onDidChange` |
|
|
53
|
-
| `fileAssociation` | 1 | `getPluginFor` |
|
|
54
|
-
| `langDef` | 1 | `get` |
|
|
55
|
-
| `lsp` | 4 | `spawn` `write` `dispose` `onData` |
|
|
56
|
-
| `protocol` | 3 | `listProtocols` `getActiveProtocolId` `setActiveProtocolId` |
|
|
57
|
-
| `viewContainer` | 4 | `getViewContainer` `getViews` `getView` `registerView` |
|
|
50
|
+
| `search` | 1 | `searchFiles` | 文件搜索——全文搜索/替换(IPC 到壳/主进程执行) |
|
|
51
|
+
| `encoding` | 3 | `detect` `decode` `encode` | 编码检测/转换(主进程 EncodingService) |
|
|
52
|
+
| `decorations` | 4 | `registerProvider` `unregisterProvider` `getDecoration` `onDidChange` | 文件装饰——池内本地注册表(零 IPC) |
|
|
53
|
+
| `fileAssociation` | 1 | `getPluginFor` | 文件关联——扩展名→插件 ID(主进程 FileAssociationService 直答) |
|
|
54
|
+
| `langDef` | 1 | `get` | langDef——语言定义注册表(主进程直答) |
|
|
55
|
+
| `lsp` | 4 | `spawn` `write` `dispose` `onData` | LSP 桥——自动补全/F12/诊断/重命名 |
|
|
56
|
+
| `protocol` | 3 | `listProtocols` `getActiveProtocolId` `setActiveProtocolId` | protocol——协议注册表(主进程直答) |
|
|
57
|
+
| `viewContainer` | 4 | `getViewContainer` `getViews` `getView` `registerView` | viewContainer——真 IPC 查询/更新(问壳侧注册表) |
|
|
58
58
|
| `plugins` | 14 | `resolvePath` `resolveEntry`° `getCompatibility`° `listDirs`° `listAll`° `listDisabledDirs`° `readManifest`° `readAllManifests`° `packageDownload`° `packageExtract`° `packageCancel`° `packageUpdateCheck`° `packageStageUpdate`° `packageCommitUpdate`° | 插件发现——双端注入:resolvePath 双端同面 |
|
|
59
59
|
| `pluginManager` | 13 | `list` `enable` `disable` `uninstall` `install` `installWithProgress`° `reinstall` `getDisabled` `getUninstalled` `isDisabled` `update`° `checkUpdates`° `notifyManifestChanged`° | 插件管理——桥接 IpcBridgeHandler → loader 函数 |
|
|
60
60
|
| `bridge` ⚠️ | 4 | `onRequest` `respond` `broadcast` `notifyConfigChanged` | 壳↔插件通信中继——壳 preload 独有 |
|
|
61
61
|
| `pool` | 32 | `pushLayout` `onReady` `toggleDevTools` `onSidebarAction` `onTabAction` `onTabBarRects` `onDragPosition` `pushAdsorbHint` `onAdsorbIndex` `pushQuickPick` `onQuickPickAction` `pushDialog` `onDialogAction` `pushFloatingPanel` `onFloatingPanelAction` `onMemoryPressure` `createWindow` `closeWindow` `onWindowClosed` `onWindowBoundsChanged` `getLayout` `onLayout` `ready` `sidebarAction` `tabAction` `tabBarRects` `dragPosition` `onAdsorbHint` `adsorbIndex` `registerBeforeClose` `unregisterBeforeClose` `beforeClose` | 池控制——壳 preload:推送布局 + 注册池→壳动作回调 |
|
|
62
62
|
| `window` | 11 | `minimize` `maximize` `unmaximize` `close` `setZoom` `toggleDevTools` `isMaximized` `onMaximizeChange` `setAlwaysOnTop` `isAlwaysOnTop` `onAlwaysOnTopChange` | 窗口控制——TitleBar 按钮映射,双端注入(11 方法同通道,共享模块 electron/window-name… |
|
|
63
63
|
| `shell` | 6 | `showItemInFolder` `openInTerminal` `pluginLocation` `openPluginFolder` `startDrag` `relaunch`° | 壳级命令——revealInOS / openInTerminal / startDrag / relaunch,双端… |
|
|
64
|
-
| `hotExit` ⚠️ | 3 | `save` `load` `clear` |
|
|
64
|
+
| `hotExit` ⚠️ | 3 | `save` `load` `clear` | 热退出暂存——编辑器未保存内容落盘 |
|
|
65
65
|
| `getFilePath` | 0 | (top-level function)`getFilePath: (file: File) => string;` | OS 拖入文件路径获取——双端注入 |
|
|
66
66
|
| `panel` | 3 | `reveal` `revealFloating` `setFloatingBounds` | —— |
|
|
67
67
|
| `settings` | 3 | `list` `getActive` `setActive` | —— |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkdesk/plugin-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
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",
|