microsoft / microsoft/vscode-cpptools
The behavior of VS Code's "files.autoGuessEncoding" setting is not replicated when opening files directly from disk
オープン
まだ誰も着手していません。
Feature Request
Language Service
- 主要言語
- TypeScript
- スター
- 6.2k
- フォーク
- 1.7k
- 平均マージ
- 14時間 46分
- マージ済み PR(30日)
- 61
説明
From: https://github.com/microsoft/vscode/issues/87160
Issue Type: Bug
Steps
- Create .h and .cpp files (with different encoding)
- Add comments in Chinese to functions in .h file (encoding: GB2312)
- Use the predefined function in .cpp file (encoding: utf-8)
- Trigger C++ suggestions
Results
- In .h file, the commnet texts were rendered as expected.

- In .cpp file, the comment texts got bad encoding.

Version
VS Code version: Code 1.41.0 (9579eda04fdb3a9bba2750f15193e5fafe16b959, 2019-12-11T18:37:42.077Z)
OS version: Windows_NT x64 10.0.18362
Remote OS version: Linux x64 3.10.107-1-tlinux2_kvm_guest-0049
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off surface_control: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.89GB (9.43GB free) |
| Process Argv | |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | SSH: docker |
| OS | Linux x64 3.10.107-1-tlinux2_kvm_guest-0049 |
| CPUs | Intel(R) Xeon(R) CPU E5-26xx v4 (8 x 3199) |
| Memory (System) | 15.42GB (1.76GB free) |
| VM | 0% |
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
GB2312 および UTF-8 でエンコードされたファイルを使って報告された手順を再現し、ディスクから直接開いた場合の動作と VS Code の files.autoGuessEncoding 設定による動作を比較します。直接開いたファイルの処理と拡張機能によるエンコード検出を追跡し、C++ の候補を表示したときに両方のファイルのコメントが正しく表示されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp, typescript, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100