microsoft / microsoft/vscode-cpptools
Option to Show Hex Values of Variables & Enums on Hover (IntelliSense)
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Type: LanguageService
Describe the bug
- OS and Version: Win10
- VS Code Version: 1.55.0
- C/C++ Extension Version: 1.3.0-insiders3
- Other extensions you installed (and if the issue persists after disabling them): N/A
- Does this issue involve using SSH remote to run the extension on a remote machine?: No
- A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc). Not a bug. It's a feature.
Steps to reproduce
N/A
Expected behavior
Add a workspace/settings option to be able to show the hex values of variables upon hovering over them, using IntelliSense. Likewise have an option for when hovering over enum values. This is especially useful when dealing with enum values that intentionally enumerate over specific hex ranges for things like different protocols' message/arbitration IDs, etc.
Sometimes when I hover over hex enum values, the hex value will flicker in the tooltip before being replaced by a decimal value, so the extension is definitely capable of at least showing hex values "as declared", which is usually more useful behavior than showing their decimal equivalents anyway.
Logs
N/A
Screenshots
N/A
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 individuando l’implementazione di TypeScript LanguageService responsabile dei risultati hover di IntelliSense e i test correlati. Traccia il modo in cui vengono formattati i valori delle variabili e degli enum, quindi determina dove verrebbe letta un’impostazione del workspace. Il lavoro è completato quando i tooltip hover possono facoltativamente mantenere i valori esadecimali sia per le variabili sia per i membri degli enum, con una copertura per l’impostazione e il comportamento di visualizzazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript, vscode
- Ambito
- developer-experience, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100