microsoft / microsoft/vscode-cpptools

Extract to function sometimes adds a #include with the folder missing from the path

Aperta
#12,897 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@sean-mcmanus ci sta già lavorando.

Dal 29/10/2024.

bug Feature: Extract to function Language Service
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

We have a repro internally with main.cpp line 208 (call to fclose). It adds "<file>.h" instead of "<parentFolder>/<file>.h" where <parentFolder> is not in the includePaths (but its parent is).

It's possible the bug could repro with Create Declaration/Definition too. I'm not sure yet if it ever adds the <parentFolder>.

I'm not sure if it repros with VS yet.

With Debug bits it fails with "Unknown error" before any code is generated.

Image

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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.