microsoft / microsoft/vscode-cpptools
Strip current namespace from inlay type hints
Personne n'a encore pris cette issue.
- Langage dominant
- TypeScript
- Étoiles
- 6.2k
- Forks
- 1.7k
- Merge moyen
- 14 h 46 min
- PR mergées (30 j)
- 61
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par localiser l’implémentation qui génère les indications de type inline C++ et suivez la manière dont les types entièrement qualifiés sont formatés dans des namespaces imbriqués. Le travail est terminé lorsque les indications affichées à l’intérieur d’un namespace omettent le namespace courant tout en affichant toujours le nom de type pertinent et en préservant le comportement en dehors de ce namespace.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100