René's URL Explorer Experiment


Title: fix(lsp): 保留 Hover Markdown 与代码块语言 by xiaoyumuxi · Pull Request #197 · Lithe-IDEA/Lithe-core-rust · GitHub

Open Graph Title: fix(lsp): 保留 Hover Markdown 与代码块语言 by xiaoyumuxi · Pull Request #197 · Lithe-IDEA/Lithe-core-rust

X Title: fix(lsp): 保留 Hover Markdown 与代码块语言 by xiaoyumuxi · Pull Request #197 · Lithe-IDEA/Lithe-core-rust

Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2373 宿主配套:1lck/Lithe-IDEA#2390 PR 类型 / Type fix:缺陷修复 改动说明 / What changes 背景 / Why 语言服务器以裸 MarkedString 返回 Hover 时,Core 把 Markdown 标成纯文本,弹窗直接显示代码围栏;返回 {language, value} 时又丢掉语言,无法按声明语言着色。 改动 / Changes 裸 MarkedString 按 LSP 规范标为 Markdown。 {language, value} 转为保留语言标识的 Markdown 代码块;围栏长于内容里的最长连续反引号,避免代码块提前结束。 显式 MarkupContent 继续遵循 plaintext / markdown,数组保持原有条目顺序,空结果保持为空。 新增共享 fixture 的九个案例,经公共归一化入口验证,并供宿主呈现测试读取。 更新 rust/contracts/rust-core-api.md,明确 Hover 格式、高亮选择与 fixture。 不在本 PR 范围内 / Out of scope 宿主呈现回归已在 1lck/Lithe-IDEA#2390 合入;1lck/Lithe-IDEA#2391 已将宿主固定 Core 修订升级到包含本修复的 1310ee36。应用 Issue #2373 当前已关闭。 类型专属:fix 复现与根因 textDocument/hover 返回裸 Markdown 字符串或 {language, value}。修复前前者得到 isMarkdown: false,后者只剩正文;预期保留 Markdown 及代码语言。 git log -S 定位原行为在拆分提交 7ae0c16(#28)已存在。 macOS 与 Windows 共用同一归一化实现,不增加平台或服务器特判。 检查项 回归在原解析器下失败:client_hover_contents_match_fixture 报告 bare-marked-string、language-marked-string、language-marked-string-with-backticks、marked-string-array 四项不符;恢复修复后通过。 [N/A] 无法自动化时的手动验证:本次已自动化。 检查归一化入口、Hover JSON 消费者与宿主 Markdown/语法着色链路;公开 JSON 字段及函数签名不变。 两端使用同一 Core 实现。 仅修改本修复、契约与回归 fixture;未发现需要另建 refactor Issue 的本次相关问题。 行为约束及根因记录于配套宿主 Agent Note。 范围检查 / Scope checks 功能矩阵:配套宿主 PR 更新 lsp-completion-hover,两端原生验证保持 pending。 插件归属:使用通用 LSP 协议 fixture,无具体插件依赖、真实插件 ID 或工具名称分支。 UI:复用宿主现有高亮器,不增加 UI 代码;配套宿主回归验证 Java 文档内 Rust 代码块按 Rust 上色。八张无头截图已在本地生成检查,在线截图证据待宿主接入后的 CI 上传;不冒充真实语言服务器验证。 统一日志系统:N/A,本次为纯内容规范化,不新增操作终态、失败、降级或资源生命周期。 i18n:N/A,语言服务器内容不是宿主界面文案。 逻辑归属:共享协议解析在 lsp-client;宿主仅呈现归一化结果。 性能与内存:代码片段增加一次线性反引号扫描与围栏字符串分配,无缓存、轮询、进程或依赖;未作性能提升声明。 设置、发行资源:N/A。 插件契约:无新增 API、字段或协议版本;四语 SDK 与插件协议不变。 无用代码:本次未新增无用路径,未夹带重构。 验证 / Verification 命令或操作 平台 结果 cargo test --manifest-path rust/Cargo.toml -p lithe-lsp-client macOS arm64 61 项通过 单独回归对比原解析器与修复解析器 macOS arm64 原实现失败,修复通过 cargo fmt --manifest-path rust/Cargo.toml --all -- --check macOS arm64 通过 Core 注释检查脚本,参数 lsp-client macOS arm64 注释规范与 Rustdoc 通过,复用本检出 target node scripts/rust-core/verify-platform-tests.mjs macOS arm64 通过 宿主使用本地 Core 的 Hover 定向回归及 race macOS arm64 通过 未能执行的检查和原因: 本地仅验证变更模块,workspace 全量测试与跨平台 clippy 交 CI;真实服务器和 macOS/Windows 原生工作流未验收。旧共享契约验证脚本已移除,不能记为通过。 提交前确认 / Final checks 从最新 origin/main 建立修复分支,目标 main。 先创建 Draft;本地修复验证完成后转 ready。 不含产物、凭据、个人路径或无关修改。 本次测试无残留应用及测试进程。

Open Graph Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2373 宿主配套:1lck/Lithe-IDEA#2390 PR 类型 / Type fix:缺陷修复 改动说明 / What changes 背景 / Why 语言服务器以裸 MarkedString 返回 Hover 时,Core 把 Markdown 标成纯文本,弹窗直接显示代码围栏;...

X Description: 关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2373 宿主配套:1lck/Lithe-IDEA#2390 PR 类型 / Type fix:缺陷修复 改动说明 / What changes 背景 / Why 语言服务器以裸 MarkedString 返回 Hover 时,Core 把 Markdown 标成纯文本,弹窗直接显示代码围栏;...

Opengraph URL: https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:24e179c3-3b18-7710-268e-2860766981d5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8A5C:1F89:38E39C5:4D5889D:6B0726E1
html-safe-nonce152550a1b2a7fc07e011c5093e9aba125576c84d37192dbdd5326dda5231f2a4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTVDOjFGODk6MzhFMzlDNTo0RDU4ODlEOjZCMDcyNkUxIiwidmlzaXRvcl9pZCI6Ijg4MDM0ODE4NDA5MjY1MzMzNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfdbc32f14205b71b803922335c3dd65d07dd42f15b2d37302ca88ce97dbb9f2c
hovercard-subject-tagpull_request:5472504571
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
twitter:imagehttps://avatars.githubusercontent.com/u/145102356?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/145102356?s=400&v=4
og:image:alt关联 Issue / Linked issue Refs 1lck/Lithe-IDEA#2373 宿主配套:1lck/Lithe-IDEA#2390 PR 类型 / Type fix:缺陷修复 改动说明 / What changes 背景 / Why 语言服务器以裸 MarkedString 返回 Hover 时,Core 把 Markdown 标成纯文本,弹窗直接显示代码围栏;...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5a20fe9aa5e45c6df9328a5ec3f167a7805856126d8bf72d810541ca01962ef9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Lithe-IDEA/Lithe-core-rust git https://github.com/Lithe-IDEA/Lithe-core-rust.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1449354685
octolytics-dimension-repository_nwoLithe-IDEA/Lithe-core-rust
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1449354685
octolytics-dimension-repository_network_root_nwoLithe-IDEA/Lithe-core-rust
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6ce961d9a663a99bc4bcab9fd6ac5cca54bd6fcc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2FLithe-core-rust%2Fpull%2F197%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2FLithe-core-rust%2Fpull%2F197%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Lithe-IDEA%2FLithe-core-rust
Reloadhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
Reloadhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
Reloadhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
Lithe-IDEAhttps://github.com/Lithe-IDEA
Lithe-core-rusthttps://github.com/Lithe-IDEA/Lithe-core-rust
Codehttps://github.com/Lithe-IDEA/Lithe-core-rust
Issues1 (1)https://github.com/Lithe-IDEA/Lithe-core-rust/issues
Pull requests2 (2)https://github.com/Lithe-IDEA/Lithe-core-rust/pulls
Actionshttps://github.com/Lithe-IDEA/Lithe-core-rust/actions
Projectshttps://github.com/Lithe-IDEA/Lithe-core-rust/projects
Security and qualityhttps://github.com/Lithe-IDEA/Lithe-core-rust/security
Insightshttps://github.com/Lithe-IDEA/Lithe-core-rust/insights
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2FLithe-core-rust%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FLithe-IDEA%2FLithe-core-rust%2Fissues%2Fnew%2Fchoose
xiaoyumuxihttps://github.com/xiaoyumuxi
mainhttps://github.com/Lithe-IDEA/Lithe-core-rust/tree/main
fix/2373-hover-marked-stringhttps://github.com/Lithe-IDEA/Lithe-core-rust/tree/fix/2373-hover-marked-string
Conversation 0 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197
Commits 1 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/commits
Checks 15 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/checks
Files changed https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
Please reload this pagehttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
fix(lsp): 保留 Hover Markdown 与代码块语言 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#top
Show all changes 1 commit https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
aa8b2fe fix(lsp): preserve hover Markdown and code block languages xiaoyumuxi Nov 24, 2026 https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/commits/aa8b2fe58b659f567cfbc9a29e4e51c54f33151d
Clear filters https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
Please reload this pagehttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
Please reload this pagehttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
rust-core-api.md https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-44fcab3ab252e95877546efaf4b5ae08e0ddf5a21a21873b2c07a66251e5ecf8
results.rs https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-417b94a34ed70a382d51b3e93eda17b24a34bbebd369bdc8ea555f7fcf3c3693
tests.rs https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-22996f171800310ba94608fbf7ecab471139b59a676109002dfddcb6f8fa2f62
hover-contents-v1.json https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-db3c406eb7eba455b0ea8931e1326dffca966c6e46edd18aeff1017287c84b19
rust/contracts/rust-core-api.mdhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-44fcab3ab252e95877546efaf4b5ae08e0ddf5a21a21873b2c07a66251e5ecf8
View file https://github.com/Lithe-IDEA/Lithe-core-rust/blob/aa8b2fe58b659f567cfbc9a29e4e51c54f33151d/rust/contracts/rust-core-api.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-44fcab3ab252e95877546efaf4b5ae08e0ddf5a21a21873b2c07a66251e5ecf8
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-44fcab3ab252e95877546efaf4b5ae08e0ddf5a21a21873b2c07a66251e5ecf8
rust/crates/lsp-client/src/client/results.rshttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-417b94a34ed70a382d51b3e93eda17b24a34bbebd369bdc8ea555f7fcf3c3693
View file https://github.com/Lithe-IDEA/Lithe-core-rust/blob/aa8b2fe58b659f567cfbc9a29e4e51c54f33151d/rust/crates/lsp-client/src/client/results.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-417b94a34ed70a382d51b3e93eda17b24a34bbebd369bdc8ea555f7fcf3c3693
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-417b94a34ed70a382d51b3e93eda17b24a34bbebd369bdc8ea555f7fcf3c3693
rust/crates/lsp-client/src/tests.rshttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-22996f171800310ba94608fbf7ecab471139b59a676109002dfddcb6f8fa2f62
View file https://github.com/Lithe-IDEA/Lithe-core-rust/blob/aa8b2fe58b659f567cfbc9a29e4e51c54f33151d/rust/crates/lsp-client/src/tests.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-22996f171800310ba94608fbf7ecab471139b59a676109002dfddcb6f8fa2f62
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-22996f171800310ba94608fbf7ecab471139b59a676109002dfddcb6f8fa2f62
rust/fixtures/lsp/hover-contents-v1.jsonhttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files#diff-db3c406eb7eba455b0ea8931e1326dffca966c6e46edd18aeff1017287c84b19
View file https://github.com/Lithe-IDEA/Lithe-core-rust/blob/aa8b2fe58b659f567cfbc9a29e4e51c54f33151d/rust/fixtures/lsp/hover-contents-v1.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/{{ revealButtonHref }}
Please reload this pagehttps://github.com/Lithe-IDEA/Lithe-core-rust/pull/197/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.