microsoft / microsoft/TypeScript-TmLanguage
Theming: Distinguish between `import` types
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 471
- フォーク
- 149
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In Atom, we can theme imports based on the type of thing being imported. As you can see below, import aliases/names are styled differently than the class Knex being imported. This has always been immensely handy for at a glance differentiation and validation of imports as well as for organizing imports.
Below is the same theme applied to VS Code, but without the ability to differentiate.
I believe this comes down to a lack of TextMate scope. Here are the available scopes for makeContext:
variable.other.readwrite.alias.ts
meta.import.ts
source.ts
And the available scopes for Knex:
variable.other.readwrite.alias.ts
meta.block.ts
meta.import.ts
source.ts
My ignorant suggestion: it would probably be enough to catch capital-cased aliases for adding an additional scope.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
makeContext に関係する TypeScript の文法規則から始め、インポートエイリアスと Knex に対して表示されるスコープを比較します。インポートされた名前が現在どのように分類されているかを確認し、テーマ設定に必要な独立したスコープを定義します。インポートエイリアスとインポートされたクラスを異なるスタイルで設定でき、結果のスコープが例と照合して検証されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100