microsoft / microsoft/vscode-cpptools
Strip current namespace from inlay type hints
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 6.2k
- フォーク
- 1.7k
- 平均マージ
- 14時間 46分
- マージ済み PR(30日)
- 61
説明
Feature Request
The inlay type hints for auto types currently always show the full namespace like in the following example:
namespace Test {
struct Struct {};
static auto /* Test::Struct */ x = Struct{};
}
For long nested namespaces, this can quickly add up until the type becomes too long and gets shortened. In that case I can no longer see the actual interesting type name, but only the start of the namespace name, the ellipsis and the end of the type.
When working inside of the namespace, I would normally leave out the namespace when referring to the type as can be seen in the example after the assignment. It would be nice if the inlay type could also do this.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、C++ のインレイ型ヒントを生成する実装を見つけ、ネストされた namespace 内で完全修飾型がどのようにフォーマットされるかを追跡します。namespace 内に表示されるヒントが現在の namespace を省略しつつ、意味のある型名を引き続き表示し、その namespace の外部では動作を維持できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100