microsoft / microsoft/TypeScript
Display operator informaton on mouse-over
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
Search Terms
operator information definition mouse over hover preview tool-tip
Suggestion
Show a tooltip when hovering over operators like +=, %or ===. The tooltip should explain the operator.
I was told in https://github.com/microsoft/vscode/issues/107046 to apply here.
Use Cases
As a beginner developer, I usually download foreign code to help me understand implementations. Often the more experienced developers use operators I do not know. It would be very helpful if the IDE could show me a short definition of that operator when I hover my mouse over it, similar to how it tells me what a function does. Ideally it also tells me how the operator is called and gives a link to some online documentation.
Examples
When I have code like var x = condition ? 12 : (int?)null; I can hover over ? or : and it shows tool-tip like "Ternary operator: is this condition true ? yes : no".
Or a more simple example: What does x += y do? Hover: "Addition assignment: x = x + y".
Checklist
My suggestion meets these guidelines:
- [ x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [ x] This wouldn't change the runtime behavior of existing JavaScript code
- [ x] This could be implemented without emitting different JS based on the types of the expressions
- [ x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- [ x] This feature would agree with the rest of TypeScript's Design Goals.
(To be perfectly honest, I don't really understand all of the above, but I'm guessing yes..)
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 esaminando il comportamento richiesto dell’hover per gli operatori e l’issue collegata di VS Code. Non sono indicati file di implementazione, test o entry point, quindi il primo compito consiste nell’individuare l’area pertinente del servizio del linguaggio TypeScript. Il lavoro sarà considerato completato quando l’hover sugli operatori supportati mostrerà una breve spiegazione, indicazioni sull’utilizzo e, idealmente, collegamenti alla documentazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, 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
- 25/100