derived class show base class virtual method's comments when hovering

オープン
#5,187 コメント 3 件 リアクション 11 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

C++言語サービスのホバー処理から始め、提供された基底クラスと派生クラスのサンプルで動作を再現してください。派生クラスの foo メソッドにホバーしたときに、基底クラスの仮想メソッドのコメントが表示され、その出典が特定されれば変更は完了です。

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

説明

Feature Request Feature: Doc comments Language Service more votes needed Visual Studio

Type: LanguageService

Describe the bug

  • OS and Version: windows 10
  • VS Code Version: 1.43.0
  • C/C++ Extension Version: 0.26.3
  • Other extensions you installed (and if the issue persists after disabling them):
  • Does this issue involve using SSH remote to run the extension on a remote machine?:
  • 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).

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Logs
Insert logs here.

Screenshots

Additional context

class base {
  // I'm comment
  virtual void foo() {}
};
class derive : public base {
  void foo() {}
};

As we often write comments on base class's (pure) virtual methods instead of repeating them on every derived classes, we hope these information could be passed to derived class when we hover the cursor on the method. Just like clion does like the following. It explicitly tells that the comment comes from base class, which will be very nice to readers.

image

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

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

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

はじめの一歩

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

microsoft/vscode-cpptools のほかの issue

microsoft/vscode-cpptools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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