microsoft / microsoft/TypeScript

Provide metadata about TypeScript's available refactorings and quick fixes

オープン
#34,859 コメント 4 件 リアクション 2 件 担当者 1 名 GitHub で見る

@orta がすでに取り組んでいます。

2019年11月7日 から。

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

説明

Problem

We are working on improving discoverability of JS/TS refactorings and quick fixes in VS Code. As part of this, we'd like to put together documentation and a new contribution points that lists out the code actions provided by TypeScript

At the moment, the only way I know to determine this list is to look through the TypeScript codebase.

Proposal

We'd like a way to get metadata about all the current TS quick fixes and code actions. The main information we are interested in:

  • Identifier for the quick fix
  • Human readable name / description for the quick fix
  • (possibly) A way to map this description to the localized description that TS ships with

Two ideas on how this could be exposed:

  • In the TS repo, check in a generated CodeActions.json file. This file would be updated whenever the refactorings or quick fixes change. VS Code would not need this to be published as part of the TypeScript package

  • Expose a command line option or tool to dump out all known refactorings and quick fixes.

/cc @orta Ryan mentioned you may also find this useful for the website

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

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

はじめの一歩

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

評価

この issue はまだ評価されていません。

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

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