Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[feat] comments that enable/disable LSP formatting

未关闭
#21,730 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
38/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清

调研方向

codeql execute language-server 入口点及其帮助页面开始,然后将请求的行为与 clang-format 文档中说明的禁用标记进行比较。明确标记语法、作用域以及与 LSP 格式化的预期交互;完成标准是仅对请求的区域禁用格式化,并且该行为已编写文档并经过测试。

由索引模型根据 Issue 内容生成。

描述

I don't see LSP (codeql execute language-server) having any documentation other than its help page, so I'm just assuming that this isn't a feature.

I like formatting my queries with the LSP formatter, but sometimes it formats stuff in a way that makes it clearly less readable to me. I want the equivalent of clang's

// clang-format off
<some C code that won't be formatted>
// clang-format on

https://clang.llvm.org/docs/ClangFormatStyleOptions.html#disabling-formatting-on-a-piece-of-code

主要语言
CodeQL
星标
10.1k
派生
2.1k
平均合并
2 天 10 小时
30 天内合并 PR
134

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/codeql 的其他 Issue

查看 github/codeql 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。