microsoft / microsoft/TypeScript

Provide support for comma insertion with snippet completion

Aperta
#54,731 0 commenti 2 reazioni 1 assegnatario Vedi su GitHub

@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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.