Skip to content

Doc comment on hover missing or for incorrect member #8686

@Colengms

Description

@Colengms

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Doc commentsAn issue related to code comments shown in hover, completion, and signature help.Language Servicebug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions