microsoft / microsoft/vscode-cpptools
Incorrect colorization of < > when calling templates.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
Bug type: Language Service
Describe the bug
- OS and Version: macOS Big Sur 11.5.2 (20G95)
- VS Code Version: 1.59.1
- C/C++ Extension Version: 1.6.0
- Other extensions you installed (and if the issue persists after disabling them): It persists.
- If using SSH remote, specify OS of remote machine: No
- A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).
Angled brackets are recognised as comparison operators when calling templates and using an initializer list to initialise the variable (every variable declaration has this behaviour).
Steps to reproduce
Check screenshots.
Expected behavior
Code sample and logs Are logs necessary?
-
Code sample
-
Configurations in
c_cpp_properties.json -
Logs from running
C/C++: Log Diagnosticsfrom the VS Code command palette -
Logs from the language server logging
Screenshots

Additional context
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie damit, die im Bericht verlinkten Issue-Screenshots und die Dokumentation der C/C++ extension zu prüfen, und reproduzieren Sie anschließend den Template-Aufruf unter macOS Big Sur mit VS Code 1.59.1 und extension 1.6.0. Im Bericht werden weder eine Quelldatei noch ein Test, ein Codebeispiel oder ein erwartetes Verhalten genannt. Ermitteln Sie daher den relevanten language-service-Einstiegspunkt für die Colorization, bevor Sie die korrekte Hervorhebung spitzer Klammern in Template-Aufrufen als Abschlusskriterium festlegen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, typescript
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100