microsoft / microsoft/vscode-cpptools

Emit semantic tokens for user defined conversions

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

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

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

説明

Feature Request

User defined conversions are the only operator overloads that aren't able to be syntax colored to make them more obvious (aside from new and delete, which I reported recently).

I'd like to request semantic tokens to enable syntax highlighting when a user defined conversion is invoked.

image

The tricky bit is, which token should it be? On the parentheses? Sometimes there aren't any parenthesis.

image

Perhaps it should be a modifier on the variable being converted? Can we do that if it's an entire expression? Maybe then we could underline the expression without changing the color of the entire thing.

image

It would also be nice if "go to definition" worked for the conversion, like other operator overloads. But I don't know if that's feasible.

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

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

はじめの一歩

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

調査の方向性

まず、拡張機能が現在どのように semantic tokens を出力し、他の C++ 演算子オーバーロードに対する go-to-definition をサポートしているかを確認します。括弧なしのケースを含め、報告された変換例を比較し、一貫して適用できるトークン表現を決定します。関連する変換形式について、動作、トークンの選択、および定義への移動のサポートが仕様化され、カバーされていれば完了です。

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

評価

技術スタック
cpp, typescript, vscode
領域
developer-experience, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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