microsoft / microsoft/TypeScript
Consider loose completions in the syntax server on unresolved/error types
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
Assume that no type named Foo exists in the current project, and assume the current file.
export let x: Foo;
x./**/
When requesting completions at /**/, we should consider giving a list of identifiers in the current file, similar to what we do for any in JavaScript files. This contrived example isn't great, but when opening a larger file, this could be helpful.
This is somewhat related to
- https://github.com/microsoft/TypeScript/issues/5334, where we considered giving identifier completions whenever hitting
any - https://github.com/microsoft/TypeScript/issues/39032, where we discussed producing these special
loadingtypes and unresolved error types.
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, die Completion-Behandlung des syntax-server für nicht aufgelöste oder Fehler-Typen nachzuverfolgen, und vergleiche sie dann mit Identifier-Completions für any in JavaScript. Lies die Issues #5334 und #39032 als Kontext. Als abgeschlossen gilt die Aufgabe, wenn die angezeigte Position Identifier aus der aktuellen Datei anbieten kann, ohne das bestehende Completion-Verhalten zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100