microsoft / microsoft/TypeScript
Provide support for comma insertion with snippet completion
Aperta
@navya9singh ci sta già lavorando.
Dal 21/6/2023.
Domain: LS: Completion Lists
Rescheduled
Suggestion
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.4k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
Bug Report
Support comma insertion with snippet completion
🔎 Search Terms
object literal method snippet
💻 Code
interface T {
aaa: string;
foo(): void;
}
const obj: T = {
aaa: ""
/**/
}
🙁 Actual behavior
const obj: T = {
aaa: ""
foo() {
},
}
On selecting the completion that inserts just foo, the comma gets inserted, but on selecting the snippet completion foo(), the comma is not inserted. This happens because both the comma insertion and snippet completion have their own CompletionSource.
🙂 Expected behavior
const obj: T = {
aaa: "",
foo() {
},
}
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.
Valutazione
Questa issue non è ancora stata valutata.