microsoft / microsoft/vscode-cpptools

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

Offen
#12,897 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@sean-mcmanus arbeitet bereits daran.

Seit 29.10.2024.

bug Feature: Extract to function Language Service
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.