microsoft / microsoft/TypeScript
Find all references across project references
オープン
まだ誰も着手していません。
Experience Enhancement
Suggestion
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
Bug Report
🔎 Search Terms
references
find all references
rename
🕗 Version & Regression Information
⏯ Playground Link
💻 Code
These are more scenarios from investigations of #42976 where the definition is considered local but is exported and can be referenced by other projects. So we need to think about a way to figure that out efficiently.
/// /shared/src/index.ts
const local = class {
foo: string;
constructor() {
this.foo = "foo";
}
fly() {
console.log(this.foo);
}
};
export const d = local;
class xy {
foo: string;
constructor() {
this.foo = "foo";
}
fly() {
console.log(this.foo);
}
};
export { xy };
🙁 Actual behavior
fly usage from project referencing the shared does not load other projects
🙂 Expected behavior
fly usage from project referencing the shared should load other projects
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、shared/index.ts の例とそれを参照するプロジェクトを使って、issue に示されている project-reference シナリオを再現します。エクスポートされたローカルクラスとエクスポートされた xy クラスについて find-all-references の動作を比較します。参照するプロジェクトからの fly の使用で、他のプロジェクトからの参照が読み込まれるようになれば、fix は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100