microsoft / microsoft/TypeScript
Expand when `isNewIdentifierLocation` is set in the syntax server
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
In https://github.com/microsoft/TypeScript/issues/37713, we might not have a full picture of the world, so it might overly restrictive to only suggest identifiers in the current file. We should consider being more permissive so that editors don't aggressively auto-complete on identifiers in these contexts.
Aside: if we do this, we should make sure that the work done in https://github.com/microsoft/TypeScript/issues/38836 doesn't cause conflicts.
For example, let's say you have an empty file like
thing/**/
and completions get triggered at /**/. A user should not get completions for thing at that point.
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
Lies zunächst die verlinkten Issues 37713 und 38836, um zu verstehen, wann isNewIdentifierLocation gesetzt wird und wie die bestehenden Einschränkungen für Vervollständigungen funktionieren. Reproduziere das Beispiel mit der leeren Datei und thing/**/, und definiere anschließend die erweiterten Vervollständigungsfälle, wobei sichergestellt wird, dass thing selbst nicht vorgeschlagen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- developer-experience, devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100