microsoft / microsoft/vscode-cpptools

Doc comment on hover missing or for incorrect member

オープン
#8,686 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug Feature: Doc comments Language Service
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

説明

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
};

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提供された C++ hover repro を Linux と Windows の VS Code で実行し、typetype2type3 をそれぞれのコメントと照合します。template メンバーに対する拡張機能の hover 処理を調査します。完了条件は、両方のプラットフォームで各メンバーが一貫して自身のドキュメントを表示することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, vscode
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。