Skip to content

Commit 47feac7

Browse files
authored
Merge pull request #6 from Lithe-IDEA/sync/1548-plugin-host-api
docs: 同步插件契约到 #1595 并新增插件后端工作区指南
2 parents be779d2 + bbab26e commit 47feac7

23 files changed

Lines changed: 3251 additions & 62 deletions

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ SDK 的源码都在本仓库的 `sdk/` 下,发布在[本仓库的 Releases](ht
131131
| [原生构建工作流(开发中)](guides/native-build-workflows.md) | Node/Java SDK 的构建执行、精确测试、运行准备,以及未提交源码的真实 Core 验证 |
132132
| [构建、运行与测试接入](guides/build-tool-integration.md) | 可用的执行提供者示例、工程后端边界,以及开发中的 API 3 状态 |
133133
| [编写调试适配器插件](guides/debug-adapter-plugin.md) | API 4:从最小清单到启动方式、先编译再调试的 `executable`、调试控制台补全,以及预发布与转正 |
134+
| [插件后端:工作区上下文与宿主服务(开发中)](guides/plugin-backend-workspace.md) | `backend` 2 与协议 3:免页面启动、工作区上下文、宿主通知、失败码,以及协议 3 只增不改时后端要遵守的规则 |
134135

135136
收录和上架的规则由 Lithe Store 维护:[发布社区插件](https://github.com/Lithe-IDEA/Lithe-store/blob/main/docs/publishing.md)讲怎么打包、提交收录和发布新版本,[版本追踪与更新](https://github.com/Lithe-IDEA/Lithe-store/blob/main/docs/versioning-and-updates.md)讲 Lithe 怎么选择可安装的版本。
136137

‎contract.lock.json‎

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
"source": {
44
"repository": "https://github.com/1lck/Lithe-IDEA",
55
"directory": "shared/contracts/plugins/v1",
6-
"revision": "32021a86f0c6c4ad2964dbbe3c2bb7854d84ad67"
6+
"revision": "f20601ee6194f32d597031556ea628de586ac2e2"
77
},
88
"files": [
99
{
1010
"path": "README.md",
11-
"sha256": "75cf6add5c473eb333caca793dc9add6394476c7f4c5196b2bf5f1aea7873d59"
11+
"sha256": "1ac89012a6e620ddeec63b0fc82460c56f05623a1d2a29dcf45e87fa123a4806"
12+
},
13+
{
14+
"path": "fixtures/backend-workspace.plugin.json",
15+
"sha256": "6eef7a0735e4cd0c66b32a1075ad8f689554e26f929d3a1f436249026e06037b"
1216
},
1317
{
1418
"path": "fixtures/backend.plugin.json",
@@ -22,26 +26,70 @@
2226
"path": "fixtures/build-command-stdout.plugin.json",
2327
"sha256": "cb24aedb59cdcec6b358dbeb95213143a4fc229aea8973ddd3f154f09335b9dc"
2428
},
29+
{
30+
"path": "fixtures/build-debug-preparation.json",
31+
"sha256": "73d3362fac7302c5698b440536821784350fbf6eb267b94d144994d403f0efed"
32+
},
33+
{
34+
"path": "fixtures/build-execution-protocol.json",
35+
"sha256": "556779c92b7b43970ff882cce6fd278dbe0d16476403778a9240d61c4a15b3da"
36+
},
2537
{
2638
"path": "fixtures/build-host-integration.plugin.json",
2739
"sha256": "36361a98a86de1c6c9c4f0694accab3adadefd53f344b4ac3a85b8906d749b13"
2840
},
41+
{
42+
"path": "fixtures/build-model-consumer.plugin.json",
43+
"sha256": "c41ac0f6fa6600f5bc0ee29d7d89f8257d9f9fec9add8d4c5ac448ad753177f5"
44+
},
45+
{
46+
"path": "fixtures/build-model-producer.plugin.json",
47+
"sha256": "2bed5e883cd21d37599cdaf69f2663b903e1149b58a7f33f7c01658ec081a455"
48+
},
2949
{
3050
"path": "fixtures/build-plans.json",
3151
"sha256": "b1ebdab5d1e7d0b6f5fc948335581c41814dac83937b8452722ad5da6836d6ab"
3252
},
53+
{
54+
"path": "fixtures/build-provider-debug-preparation.plugin.json",
55+
"sha256": "07db3ced65ab5f73318de59c8857b48f7b68d731bae928bc2954e3e47f585170"
56+
},
57+
{
58+
"path": "fixtures/build-provider-execution.plugin.json",
59+
"sha256": "6978c19d7f4353c5dadc833ac723dad76c001aae2c92286d4dd4a9ff2bd67101"
60+
},
3361
{
3462
"path": "fixtures/build-provider-language-server.plugin.json",
3563
"sha256": "fc6fae12c07715ad5017484cf9a17905d51ffa7ee40ccf4200613b720644f2ce"
3664
},
65+
{
66+
"path": "fixtures/build-provider-run-preparation.plugin.json",
67+
"sha256": "14fca4d8fba7a2bb66f3d6fb7ae81c745bc323d44d9958d8fdfc5c1adbcc7ac1"
68+
},
69+
{
70+
"path": "fixtures/build-provider-tests.plugin.json",
71+
"sha256": "071cef77007fbde34e1ff971c10bbe693e9275f10de1c070801baf880c4e19f8"
72+
},
3773
{
3874
"path": "fixtures/build-provider.plugin.json",
3975
"sha256": "bbb19c3d201be64af5262be549fe92822c14e77efae616e64c4f32ddd56b2758"
4076
},
77+
{
78+
"path": "fixtures/build-run-preparation.json",
79+
"sha256": "3609997b65e0322ae16756f1af376c041c55aa1a20187cad0c5a9bf1444a10cd"
80+
},
4181
{
4282
"path": "fixtures/build-static-file.plugin.json",
4383
"sha256": "0380748f151cf2b154133dac5447c8665801f16bf005314ab7ac1d4d11475c92"
4484
},
85+
{
86+
"path": "fixtures/build-test-discovery.json",
87+
"sha256": "62384b0d2c31cd2fed877a421dd90eb1fff1e7d991e1622567004bc2eace5dd6"
88+
},
89+
{
90+
"path": "fixtures/build-test-protocol.json",
91+
"sha256": "a67b9b6448aff53792cb791b0fa6994fcb0e94729a5c5a85a524398ebe6e58fd"
92+
},
4593
{
4694
"path": "fixtures/build-tool-path.plugin.json",
4795
"sha256": "685144e417bbf01b013144dec109d51b56922f98811e9ea6eda34da26749165c"
@@ -50,25 +98,33 @@
5098
"path": "fixtures/command-plans.json",
5199
"sha256": "a188fd65f6cdb47f9e9ad4b0de3a7ddcd17e4e577b34f6e25b96d2c1f2bdca7c"
52100
},
101+
{
102+
"path": "fixtures/debug-adapter-language-server.plugin.json",
103+
"sha256": "c29d1e94a69840a63317e5d4b15a0a9cd8267a980fa2b21c37528bc08bb3ee96"
104+
},
53105
{
54106
"path": "fixtures/debug-adapter-rejections.json",
55-
"sha256": "0aaa586c19884025eb9bee36dc213fbebacc4d0503c3f5ed10a196c922cfaeaf"
107+
"sha256": "ec6023c48236ec3f59f8c8c7bfd4cefea0180f14e11fd4823fb2e48ac36567a6"
108+
},
109+
{
110+
"path": "fixtures/debug-adapter-remote-attach.plugin.json",
111+
"sha256": "66b4e0326f3b99027865869742ec98afd7da0df6133bc0a23115749edde13e3b"
56112
},
57113
{
58114
"path": "fixtures/debug-adapter.plugin.json",
59115
"sha256": "81038febbde31e0554451789106f8fc255e87038c8185602ce0c7e918f90ff78"
60116
},
61117
{
62118
"path": "fixtures/function-protocol.json",
63-
"sha256": "980e8d39db2af9d7f922cdc01b0ec06e2cb8c33da2142ec8040befa975b7eae5"
119+
"sha256": "d8f11ab3287d24210e9369ec6b5fcdb65316d6afe82c60583455c84065ae583b"
64120
},
65121
{
66122
"path": "fixtures/hello-lithe.plugin.json",
67123
"sha256": "e56a4c2df075c14f059eefd73e916215f6e1594f047617c76b518fa21cc2a065"
68124
},
69125
{
70126
"path": "fixtures/invalid-manifests.json",
71-
"sha256": "107afd7d3f440a87aab3611a80aa5e92c067cd719019dafd94bda8cdbd6b842f"
127+
"sha256": "3bbd1ed851b916d1e006d0403bb9eb2d5cd122e65070da91890aa6b7154b0454"
72128
},
73129
{
74130
"path": "fixtures/language-host-integration.plugin.json",
@@ -142,6 +198,10 @@
142198
"path": "fixtures/project-plans.json",
143199
"sha256": "14c6fa8b073732f93b85b30e4fa9e8384ce094f2fb6fe833e41476f12c8d2132"
144200
},
201+
{
202+
"path": "fixtures/publisher-bundled.plugin.json",
203+
"sha256": "195c3f7c9712f44711602c059e32af88b3e7b7285b600cffd38f116e5b1150eb"
204+
},
145205
{
146206
"path": "fixtures/runtime-versions.json",
147207
"sha256": "a19c1c057ab54a2b24a4a0e5a0d7764f0b9063bb6dd356baf19f5f6e37a76e19"
@@ -168,7 +228,7 @@
168228
},
169229
{
170230
"path": "plugin-manifest.schema.json",
171-
"sha256": "f35d510bf76feeff2978289bebbeba19453cd60b1e101b7677c6106934a27f95"
231+
"sha256": "789a340f03a598f9e1505ff887a90ee5a0b8a004071ef331d6382a97ea1b9f11"
172232
}
173233
]
174234
}

0 commit comments

Comments
 (0)