Show inherited comments in quick info

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

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

評価

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

調査の方向性

Interfaces/Controllers/IFooController と FooController を使って例を再現し、その後、インポートしたインターフェイスを実装するメソッドに対する TypeScript の quick-info の動作を追跡するところから始めます。FooController.test にホバーしたときにインターフェイスのコメントと @returns のテキストが表示され、期待される動作と一致すれば完了です。

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

説明

Domain: API Domain: LS: Quick Info Experience Enhancement In Discussion Suggestion

TypeScript Version: 1.8.10

Have an interface in one file

interface IFooController {
    /**
     * random comment
     * @returns {string} Returns a string
     */
    test(): string;
}

export default IFooController;

In another file have a class that implements that interface


import IFooController from "../Interfaces/Controllers/IFooController";

export default class FooController implements IFooController {
    test(){

    }
}

Expected behavior:

See the comments of the interface when hover over the class method

Actual behavior:

See nothing.

This doesn't happen with functions and class comments.
This only happens when interface is imported.

Using Microsoft Visual Studio Professional 2015
Version 14.0.25123.00 Update 2

主要言語
Go
スター
111k
フォーク
14.4k
平均マージ
1日 19時間
マージ済み PR(30日)
117

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

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

はじめの一歩

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

microsoft/TypeScript のほかの issue

microsoft/TypeScript の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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