[feat] comments that enable/disable LSP formatting
未關閉
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 141
描述
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
```codeql
// clang-format off
// clang-format on
```
https://clang.llvm.org/docs/ClangFormatStyleOptions.html#disabling-formatting-on-a-piece-of-code
貢獻指南
研究方向
從 `codeql execute language-server` 進入點及其說明頁面開始,然後將要求的行為與 clang-format 文件中說明的停用標記進行比較。釐清標記語法、適用範圍以及與 LSP 格式化的預期互動;完成標準是僅對要求的區域停用格式化,且該行為已撰寫文件並經過測試。
由索引模型根據 Issue 內容生成。
評估
- 領域
- developer-experience, tooling
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 冷清
- 描述清晰度
- 需要釐清
- 新手友好度
- 38/100