microsoft / microsoft/TypeScript

Show parameter quickinfo at the position of arguments

Aperta
#41,297 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Awaiting More Feedback Suggestion
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

Search Terms

quickinfo,parameter

Suggestion

If you call an function with many many arguments (and maybe with same type).
It's easy to lost your mind: Where I am? What i am doing? Which parameter I'm passing?
It's helpful if show the parameter info when hover into one arguments.

Examples

declare function foo(
    p1: string,
    p2: string,
    p3: string,
    p4: string,
    p5: string
): void;

declare const a: string[]

foo(
    a[0],
    a[1], // ???
    a[2],
    a[3],
    a[4]
)

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

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.

Direzione di ricerca

L’issue non indica file, test o punti di ingresso. Inizia tracciando il comportamento di TypeScript language-service quickinfo e signature-help sugli argomenti delle chiamate; il lavoro è completato quando il passaggio del mouse su un argomento identifica il parametro corrispondente senza modificare l’output a runtime.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
developer-experience, tooling
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.