microsoft / microsoft/vscode-cpptools

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

Aperta
#7,083 31 commenti 16 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

enhancement Feature Request Feature: Code Folding Feature: Code Formatting Language Service
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riprodurre il problema in VS Code con C_Cpp.intelliSenseEngine impostato su "Disabled", verificando la formattazione dei documenti e il code folding con gestione delle parentesi graffe. Confrontare il comportamento utilizzando le versioni segnalate di VS Code e dell’estensione C/C++; il lavoro è completato quando entrambe le funzionalità funzionano correttamente in questa configurazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cpp, vscode
Ambito
tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.