Repository navigation
fix(core): Git 认证错误码、补全触发字符、选区格式化与启动计划 golden - #4
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- featuresChanged 新增 completionOptions(triggerCharacters/allCommitCharacters) - 新增 rangeFormatting 操作与 rangeFormatting 能力 - formatting 接受 formattingOptions,缺省保持原默认值 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Core #3 起 languageServerLaunchPlan 返回 Core 校验过的包身份 owner, 但 command-plans.json、language-server-launch-resolution.json 和 README 未同步, 导致 main 上两个 golden 测试失败。现在 lithe-core 全量 1772 项通过。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Viva 客户端(1lck/Lithe-IDEA#1799)之前在 Go 里临时绕过了几处 Core 缺口。这个 PR 在 Core 里把它们修掉,同时修复 main 上两个失败的 golden 测试。
改动
git.write认证失败时,operationError.code返回git_authentication_failed。LC_ALL=C和GIT_TERMINAL_PROMPT=0,所以判断结果不受系统语言影响。git/authentication_failure.rs和 fixtureshared/fixtures/git/authentication-failure-v1.json,并在rust-core-api.md写明。featuresChanged事件新增completionOptions: {triggerCharacters, allCommitCharacters}。completionProvider加上动态注册的合集;动态注册变化后会重新发送。isIncomplete原本就会保留,这次补了回归测试。rangeFormatting。formatting和rangeFormatting都可以传formattingOptions,包括tabSize(1–1024)以及insertSpaces等布尔值。传了就覆盖原来的默认值,不传时行为不变。languageServerLaunchPlan会返回owner,即 Core 校验过的插件包身份。command-plans.json、language-server-launch-resolution.json和契约 README 没有同步更新,导致command_plan_fixtures_match_golden_expansions和launch_resolution_cases_match_the_contract_golden两个测试失败。owner,并加进 README 的字段表。以上都是增量兼容的改动:只新增字段、错误码和操作,原有的调用方式和默认值不变。插件公开协议(
plugin_function.rs)没有修改。验证
cargo test -p lithe-core --no-fail-fast:1772 项通过cargo fmt --all --check、scripts/rust-core/verify-rust-core-comments.sh通过./internal/core/...和./internal/workbench/...测试通过合并后
shared/contracts/plugins/v1/和 lithe-plugin-docs。🤖 Generated with Claude Code