microsoft / microsoft/vscode-cpptools

Code folding and formatting don't work when C_Cpp.intelliSenseEngine is set to "Disabled"

オープン
#7,083 コメント 31 件 リアクション 16 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement Feature Request Feature: Code Folding Feature: Code Formatting Language Service
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

説明

Issue Type: Bug

The C++ extension doesn't seem to work. The two things I note are:

  1. Format document doesn't work and the status bar says Extension C++ cannot format
  2. Code folding used to be smart and didn't just fold all indented areas but matched braces. This is not working now.

Things I've tried:

  1. Re-installing cpp extension/ downgrading to last known good version.
  2. Downgrading vscode to last minor version.
  3. Setting "C_Cpp.loggingLevel": "Debug". Despite this, the output tab does not show anything for C++ extension.

Earlier today I got a notification that the extension server crashed but after restarting, it seemed to work fine. All other extensions are working as intended. Only C++ extension stopped working after that.

Extension version: 1.2.2
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:45:54.515Z)
OS version: Darwin x64 19.6.0
Fetching remote diagnostics for 'ssh-remote+7b22686f73744e616d65223a2264657661767265742d5839392d45227d' timed out.
Remote OS version: Linux x64 4.15.0-136-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.53GB free)
Process Argv --crash-reporter-id 2d795352-d240-4b70-bd95-01a9f68ffe06
Screen Reader no
VM 0%

Fetching remote diagnostics for 'ssh-remote+7b22686f73744e616d65223a2264657661767265742d5839392d45227d' timed out.

Item Value
Remote SSH: devavret-X99-E
OS Linux x64 4.15.0-136-generic
CPUs Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz (12 x 1862)
Memory (System) 31.33GB (26.78GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspyt653:30253241
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vstry914:30256638
pythonvsdeb440:30248342
pythonvsded773:30248341
vstes627:30244334
pythonvspyt875:30259475
pythontbcf:30260844

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

C_Cpp.intelliSenseEngine を "Disabled" に設定した VS Code で問題を再現し、ドキュメントのフォーマットと括弧に対応したコード折りたたみを確認します。報告された VS Code と C/C++ 拡張機能のバージョンを使用して動作を比較します。この構成で両方の機能が正しく動作すれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, vscode
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。