Repository navigation
fix(manifest): 补齐 editor.actions 所需的 documents.read 权限(v0.2.1) - #14
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
原因
v0.2.0的plugin.json新增了editor.actions权限,但缺少 Core 强制要求配套的documents.read权限,导致桌面端在下载并解压安装包后被plugins.marketplace.installReview/validate_manifest_value拒绝(Editor actions and providers require documents.read for live snapshots.)。改动内容
io.github.lithe-idea.java-navigation/plugin.json:在permissions中补齐"documents.read",并将版本号递增至0.2.1。docs/releases/v0.2.1.md:新增0.2.1中英文发布说明。scripts/package.mjs:在打包前增加权限依赖一致性检查(editor.actions/editor.providers→documents.read、requestMethods/forwardNotifications→languageServer.request、languageServers→languageServer.launch、backend→backend.launch)。internal/backend/manifest_test.go:新增TestPluginManifestPermissionsConsistent,在go test ./...中同步校验清单权限依赖与排序。本地验证
gofmt -l .、go vet ./...、go test -timeout=120s -race -count=1 ./...全部通过。node scripts/package.mjs生成 6 个平台0.2.1安装包,并通过Lithe-store/scripts/validate-index.mjs(readPackageManifests+checkManifest)校验。Lithe-IDEA链接的 Rust Core(plugins.marketplace.installReview)验证0.2.1的darwin-arm64与windows-x64ZIP 均返回status: "ok"。后续发布
合并本 PR 后,从
main推送v0.2.1tag 即可由.github/workflows/release.yml发布 GitHub Release 并由Lithe-store自动收录。