Repository navigation
feat(languages): 支持插件按首行识别无后缀文档 - #127
Merged
Merged
Conversation
Contributor
|
这个小能力最好直接在 API 里面加就行了不要去改契约 |
This was referenced Nov 20, 2026
Mucheen
marked this pull request as ready for review
November 20, 2026 02:38
5 tasks done
xiaoyumuxi
added a commit
that referenced
this pull request
Nov 20, 2026
* fix(toolchain): 外部安装的多入口链接保留布局里的文件名 rustup 把 ~/.cargo/bin/cargo、rust-analyzer 链接到自身,按启动时的名字决定运行哪个工具。 Core 校验外部安装后返回规范路径,把 cargo 解析成 rustup,版本探针运行的是 rustup, cargo 因此永远找不到。 布局文件链接到另一个文件名时,返回规范主目录下的布局路径;链接目标的类型、可执行位和 不越出主目录、不进入工作区的检查不变。同名链接(版本管理器别名等)仍返回规范路径。 顺带把已合入的 #112、#127、#128、#130、#133 从协议更新记录的“待合入”移到时间线。 * docs(plugins): 协议更新记录登记 #135
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.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
plugins.declarative.decodeGrammar从包内 TextMate 语法或独立的grammars/<language-id>.first-line.json读取可选的firstLineMatch。独立资源保留宿主已有的高亮,旧宿主忽略该资源,插件继续以languages: 0安装。languages.matchFirstLine按宿主注册顺序匹配有界的完整首行。正则验证、匹配及缓存由两端共用的 Rust Core 执行。无效的可选提示被忽略,语法高亮继续可用。不在本 PR 范围内 / Out of scope
桌面文件打开接线在 桌面 #2217,Python 语法文件和兼容性回归在 Python #6。
范围检查 / Scope checks
grammar.path和languages: 0。schemaVersion、pluginAPIVersion、能力列表及清单 schema 与主线一致。未增加面向后端的宿主方法。验证 / Verification
rust/fixtures/plugins/first-line-match-v1.json并通过 C ABI 验证顺序、空结果与无效请求。3c0fcff在 macOS 上通过全量 Rust workspace 2300 项和受影响 crate 的严格 Clippy。远程会话测试使用短临时路径TMPDIR=/tmp。