microsoft / microsoft/vscode-cpptools

Strip current namespace from inlay type hints

Aperta
#9,552 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

enhancement Feature: Inlay Hint Language Service Visual Studio
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Feature Request

The inlay type hints for auto types currently always show the full namespace like in the following example:

namespace Test {

struct Struct {};

static auto /* Test::Struct */ x = Struct{};

}

For long nested namespaces, this can quickly add up until the type becomes too long and gets shortened. In that case I can no longer see the actual interesting type name, but only the start of the namespace name, the ellipsis and the end of the type.

When working inside of the namespace, I would normally leave out the namespace when referring to the type as can be seen in the example after the assignment. It would be nice if the inlay type could also do this.

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

Inizia individuando l’implementazione che genera i suggerimenti inline dei tipi C++ e segui come vengono formattati i tipi completamente qualificati all’interno di namespace annidati. Il lavoro è completato quando i suggerimenti mostrati all’interno di un namespace omettono il namespace corrente, continuando tuttavia a visualizzare il nome significativo del tipo e a preservare il comportamento al di fuori di quel namespace.

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

Valutazione

Stack tecnologico
cpp
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
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.