[feat] comments that enable/disable LSP formatting
- Vorherrschende Sprache
- CodeQL
- Sterne
- 10.1k
- Forks
- 2.1k
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 141
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Start at the `codeql execute language-server` entry point and its help page, then compare the requested behavior with clang-format's documented disabling markers. Clarify the marker syntax, scope, and expected interaction with LSP formatting; done means formatting is disabled only for the requested regions and the behavior is documented and tested.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- developer-experience, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 38/100