microsoft / microsoft/vscode-cpptools
The LineEnding setting in .clang-format has no effect within VS Code
オープン
まだ誰も着手していません。
bug
Feature: Code Formatting
has workaround
Language Service
- 主要言語
- TypeScript
- スター
- 6.2k
- フォーク
- 1.7k
- 平均マージ
- 14時間 46分
- マージ済み PR(30日)
- 61
説明
Environment
- OS and Version: Ubuntu 22.04 LTS
- VS Code Version: 1.89
- C/C++ Extension Version: v1.20.5
Bug Summary and Steps to Reproduce
Create a .cpp file with LF line endings.
Configure a .clang-format file with
LineEnding: CRLF
The format the document.
Expected: The line endings should have been converted to CRLF.
Actual: The line endings stay at LF.
Configuration and Logs
not necessary
Other Extensions
No response
Additional context
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
LF の改行を使用する .cpp ファイルと、LineEnding: CRLF を含む .clang-format ファイルを使って、VS Code で問題を再現します。まず、C/C++ extension がどのようにフォーマットを呼び出すかを追跡し、その後、フォーマットによってドキュメントの改行が期待どおり CRLF に変換されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp, typescript
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100