microsoft / microsoft/TypeScript
Find all references across project references
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das im Issue gezeigte project-reference-Szenario anhand des Beispiels shared/index.ts und eines referenzierenden Projekts zu reproduzieren. Vergleiche das Verhalten von find-all-references für die exportierte lokale Klasse und die exportierte xy-Klasse; der Fix ist vollständig, wenn die fly-Nutzung aus dem referenzierenden Projekt Referenzen aus anderen Projekten lädt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- compilers
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100