microsoft / microsoft/TypeScript
Expand when `isNewIdentifierLocation` is set in the syntax server
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia leggendo le issue collegate 37713 e 38836 per capire quando viene impostato isNewIdentifierLocation e come funzionano le restrizioni di completamento esistenti. Riproduci l’esempio del file vuoto con thing/**/, quindi definisci i casi di completamento ampliati assicurandoti che thing stesso non venga suggerito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- developer-experience, devtools
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100