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 天 17 小時
30 天內合併 PR
145

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/codeql 的其他 Issue

查看 github/codeql 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。