microsoft / microsoft/vscode-cpptools
Doc comment on hover missing or for incorrect member
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
In the following code example, if I hover over type, I get the correct doc comment. If I hover over type2, I get the correct doc comment on Windows, but on Linux I get nothing. If I hover over type3, it displays the doc comment for the class instead of the member. This does not appear to repro in VS.
#include <vector>
// CLASS DOC
template <class T>
class test
{
public:
// MEMBER DOC
typename T type;
// Works
// MEMBER2 DOC
typename int type2;
// Works on Windows, but nothing on Linux
// MEMBER3 DOC
typedef std::vector<T> type3;
// Shows CLASS DOC
};
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
Führe zunächst die bereitgestellte C++-Hover-Reproduktion unter Linux und Windows in VS Code aus und prüfe type, type2 und type3 anhand ihrer Kommentare. Untersuche die Hover-Behandlung der Erweiterung für Template-Mitglieder; abgeschlossen ist die Aufgabe, wenn jedes Mitglied auf beiden Plattformen konsistent seine eigene Dokumentation anzeigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100