github / github/codeql

[feat] comments that enable/disable LSP formatting

Aberta
#21,730 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
CodeQL
Estrelas
10.1k
Forks
2.1k
Merge médio
2d 15h
PRs com merge (30d)
141

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Domínio
developer-experience, tooling
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Pouca atividade
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
38/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.