Repository navigation
feat(python): 支持按 shebang 识别无后缀脚本 - #6
Merged
Mucheen merged 4 commits intoNov 20, 2026
Merged
Conversation
This was referenced Nov 20, 2026
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
env/env -Sshebang 选择 Python,包含env -S后接绝对解释器路径的写法。插件继续声明.py、.pyi、.pyw。grammars/python.first-line.json提供可选首行元数据。普通.py与无后缀脚本共用宿主内置的语法和分类规则。插件继续声明languages: 0。不在本 PR 范围内 / Out of scope
现有 M3 主线宿主复验由 Python #5 交付。此 PR 叠在 #5 上便于单独审阅,等 #5 合入后切回 main。正式发布与 Windows 交互验收由维护者安排。
范围检查 / Scope checks
验证 / Verification
3dd5a79e9通过 5 项宿主 E2E。覆盖项目生成、解释器与调试、普通文件高亮、无后缀env -S绝对路径脚本的编辑诊断和包只读。新增高亮和 shebang 用例分别耗时 1.87 秒与 8.19 秒。